is this correct?
#1

Thanks
Reply
#2

new Muted[MAX_PLAYERS]; // on top

pawn Код:
CMD:muteme(playerid,params [])
{
#pragma unused params
     Muted[playerid] = 1;
     SendClientMessage(playerid,color,"muted!!!");
     return 1;
}

public OnPlayerText(playerid,text)
{  
     if(Muted[playerid] == 1)
     {
     SendClientMessage(playerid,color,"error!!!!");
     return 0;
     }
     return 1;
}
Reply
#3

you forgot reset the variable

public OnPlayerDisconnect(playerid, reason)
{
Muted[playerid] = 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)