is this correct?
#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


Messages In This Thread
is this correct? - by P<3TS - 20.07.2012, 22:25
Re: is this correct? - by Matz - 20.07.2012, 22:35
Re: is this correct? - by b.rock - 20.07.2012, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)