Need help for radio script[walkie-talkie] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help for radio script[walkie-talkie] (
/showthread.php?tid=90126)
Need help for radio script[walkie-talkie] -
Alberto_Abate - 06.08.2009
I tried to do this script for my RP server.But i couldnt do it.I searched it in forum but i couldnt find any . I need your help... I have a radio script but its too simple. I want that when someone talked by using /r command others who is near him must hear what did he say. Also i want a command to close or open radio.If you help me i will be really happy. If you have ready script please share it
Note: Sorry for my bad English. I hope you will understand me
Re: Need help for radio script[walkie-talkie] -
Alberto_Abate - 06.08.2009
I really need help about that. Please help me
Re: Need help for radio script[walkie-talkie] -
Alberto_Abate - 06.08.2009
Sorry for double posting but i really need help about that
Re: Need help for radio script[walkie-talkie] -
gtalover12 - 06.08.2009
Ok, well use
OnPlayerText.
Here's an example..
Код:
public OnPlayerText(playerid, text[])
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(text[0] == '+')
{
format(string,sizeof(string),"RADIO %s: %s",name,text[1]);
SendClientMessageToAll(grey,string);
return 0;
}
return 1;
}
Also, be patient, and dont double post =]
Re: Need help for radio script[walkie-talkie] -
Alberto_Abate - 08.08.2009
Quote:
Originally Posted by NoxY
Ok, well use
OnPlayerText.
Here's an example..
Код:
public OnPlayerText(playerid, text[])
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(text[0] == '+')
{
format(string,sizeof(string),"RADIO %s: %s",name,text[1]);
SendClientMessageToAll(grey,string);
return 0;
}
return 1;
}
Also, be patient, and dont double post =]
|
Thanks