25.05.2013, 14:50
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
if(PlayerInfo[playerid][pPreso] == 1 || PlayerInfo[playerid][pPresoAdmin] == 1) {
if(PlayerInfo[playerid][pAdmin] == 0) {
new bool:erro = false;
for(new i; i < sizeof(ComandosBlocked); i++) {
if(strfind(cmdtext, ComandosBlocked[i], true) != -1)
{
erro = true;
break;
}
}
return erro;
}
}
return 1;
}