06.11.2016, 19:13
Tenta isso
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(success) { if((ComandosDesativados == 1) && (!IsPlayerAdmin(playerid))) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Os comandos estгo desativados!"); if(IsPlayerAdmin(playerid) == 0) if(ProibidoCMDs[playerid] == 0) SpamProtection2(playerid); if((Preso[playerid]) && (!IsPlayerAdmin(playerid))) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Vocк estб preso e nгo pode sair!"); if((ProibidoCMDs[playerid]) && (!IsPlayerAdmin(playerid))) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Vocк estб proibido de usar comandos por 30 segundos!"); if((ProibidoDeUsarComandos[playerid] == 1) && (!IsPlayerAdmin(playerid))) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Vocк foi proibido de utilizar comandos pelo admin."); } else { } idx2 = 0; return 0; }