11.11.2012, 15:52
Alguem tem sistema de corregedoria, aquela q puni os cops
E me encina como por?

E me encina como por?

if(strcmp(cmd,"/punir", true) == 0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(corregedor[playerid] == 1 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "Digite: /punir [id] [level] [Motivo]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /punir [id] [level] [Motivo]");
return 1;
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
format(string, sizeof(string), "* Vocк foi punido pelo corregedor %s %d leveis.", aname);
SendClientMessage(plid, tcadm, string);
format(string, sizeof(string), "* Vocк puniu o jogador %s %d levels.", pname);
SendClientMessage(playerid, Blue, string);
dini_IntSet(file2, "Level", dini_Int(file2, "Level"));
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(INFO) Jogador nгo conectado.");
return 1;
}
}
}