SA-MP Forums Archive
Help with radio - 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: Help with radio (/showthread.php?tid=230053)



Help with radio - Jack_Rocker - 22.02.2011

How can I make it so if I type '@hi' everyone sees 'Jack_Rocker Radio: hi' in chat?

Thanks,

Jack_Rocker


Re: Help with radio - randomkid88 - 22.02.2011

To use the symbol like that, use OnPlayerText and something like this:

pawn Код:
public OnPlayerText(playerid, text[])
{
     if(text[0] == '@')
     {
              //Send your message here
             return 0;
     }
}