SA-MP Forums Archive
otherid - 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: otherid (/showthread.php?tid=163788)



2 commands, 1 function - DragonBlaster50 - 28.07.2010

Hey People, i forgot but, i have a command, but i wanna make it be /r and /radio, How do i make this?


Re: otherid - Mauzen - 28.07.2010

If you are using strcmp for your commands, you can do it like this:

pawn Код:
if((strcmp(cmd, "/r", true) == 0) || (strcmp(cmd, "/radio", true) == 0))



Re: otherid - DragonBlaster50 - 28.07.2010

Thank you.


Re: otherid - DragonBlaster50 - 28.07.2010

Btw, i got a little stuck, does anyone got a small piece of code for a Team Message? (Like, SendTeamMessage Working with teams, not Gteams.


Re: otherid - DragonBlaster50 - 28.07.2010

Please, Someone? i cant continue untill i got this