SA-MP Forums Archive
Callback - 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)
+--- Thread: Callback (/showthread.php?tid=563173)



Callback - bigboy81 - 14.02.2015

I need callback if player not type @ in chat and do something if not..


Re: Callback - bigboy81 - 14.02.2015

@****** i need if player not type @ in chat and do something with that..


Re: Callback - bigboy81 - 14.02.2015

@****** yes i know i need for that OnPlayerText but i remember condition for if player not typed


Re: Callback - CalvinC - 14.02.2015

Check if the first letter of the text contains @.
pawn Код:
if(text[0] == '@')
Simple as that.