13.07.2012, 18:58
pawn Код:
new pCMD[MAX_PLAYERS char];
// OnPlayerConnect
pCMD{playerid} = false;
// Trancar comandos:
pCMD{playerid} = true;
public OnPlayerCommandText(playerid, cmdtext[])
{
// NO TOPO DO ONPLAYERCMDTEXT
if(pCMD{playerid} == true && strcmp(cmdtext,"/desbloquear", true) != 0) return SendClientMessage(playerid, -1,"Os comandos foram bloqueados, impossнvel utilizar.);
if(!strcmp(cmdtext,"/desbloquear", true)) return pCMD{playerid} = false;
return false;
}