I need OnPlayerText help - 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: I need OnPlayerText help (
/showthread.php?tid=554601)
I need OnPlayerText help -
ZombieNest - 04.01.2015
Guys I made a mask system and it replaces onplayertext, In some script the player can't say anything because of the system, What can I do?
I got return 0; at the end of OnPlayerText in script and filterscript
How can I make the player say?
Re: I need OnPlayerText help -
ATGOggy - 04.01.2015
REMOVED
Re: I need OnPlayerText help -
Gaurav_Rawat - 04.01.2015
If you want player to not speak when he got mask
Simply do it like this
new mask[MAX_PLAYERS];
Then when the player uses the mask cmd set the mask=1;
And in onplayertext call use if(mask==1){ w/e you want to do}
Re: I need OnPlayerText help -
ATGOggy - 04.01.2015
On top:
PHP код:
new mask[MAX_PLAYERS];
OnPlayerText
PHP код:
public OnPlayerText(playerid, text)
{
if(mask[playerid]==1) return 1;
return 0;
}
Simple