10.05.2012, 15:51
pawn Код:
if(strcmp("/daradmin", cmdtext, true) == 0)
{
new tmp[256], idx;
tmp = strtok (cmdtext, idx);
idx = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, PRETO, "Use: /daradmin id");
if(!IsPlayerConnected(idx)) return SendClientMessage(playerid, PRETO, "Este jogador nгo estб conectado!");
PlayerInfo[idx][pAdmin] = 1337;
SendClientMessage(idx, PRETO, "Agora vocк й ADM.");
return 1;
}