Forum

> > CS2D > Scripts > Help With a Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Help With a Script

1 reply
To the start Previous 1 Next To the start

old Help With a Script

jerumdiokkk
User Off Offline

Quote
can someone make a script for me
NOTE:if it is too hard,don't need to do

is more or less like this:

replace phrases radio:
. Need Backup
. Taking Fire Need Assistance

by:
. Need Ammo
. Need Medic

and also when the players come on my server, the sentences were due to stay this way they also

PS: I have these sounds here and when they press "Need Backup" or "Taking Fire Need Assitance" they will hear "Need Ammo" or "Need Medic"

So I think for example, the file is in these sounds folder (snd/radio/need ammo) you have to have a line in the script

NOTE: There will be so, it is only an example

EX:
PlaySound (snd/radio/need ammo)

old Re: Help With a Script

TimeQuesT
User Off Offline

Quote
Quote
radio(id,message)                         on radio
-id: player id
-message: radio message type id
>return:     0 - proceed normally
          1 - don't show message



example:

1
2
3
4
5
6
7
addhook ("radio","radi")
function radi(id,msg)
if (msg==yourmsgid) then
parse ("sv_sound \"PATH\"")
return 1
end
end

you only have to change a few things in this script.

edit:
i would change the thread titel...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview