I need OnPlayerText help
#1

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?
Reply
#2

REMOVED
Reply
#3

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}
Reply
#4

On top:
PHP код:
new mask[MAX_PLAYERS]; 
OnPlayerText
PHP код:
public OnPlayerText(playeridtext)
{
    if(
mask[playerid]==1) return 1;
    return 
0;

Simple
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)