[Pedido] Coregedoria de policia - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Coregedoria de policia (
/showthread.php?tid=391772)
Coregedoria de policia -
aldair8 - 11.11.2012
Alguem tem sistema de corregedoria, aquela q puni os cops
E me encina como por?
Re: Coregedoria de policia -
silenthill - 11.11.2012
Aae cara eu tbm to querendo um porйm tentei fazer o meu mais ainda n ta dando certo tipo nao consigo tirar os leveis p puniзao de cops mesmo assim vou postar aki, p v se alguem pode ajudar concertar p nуs..estou tentando corrigir...assim q consegui eu posto
pawn Код:
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;
}
}
}
Re: Coregedoria de policia -
humildadeforever - 11.11.2012
Qual seria a funзгo do comando? Explique melhor.
Re: Coregedoria de policia -
silenthill - 11.11.2012
O policial q nao segue as regras й punido pelo corregedor "x" leveis estabelecidos ..ex: roubo de carga = multa 600, se o policial multar errado visto q ja existe a regra de multar em 600, ele й punido pelo corregedor vamos supor "3" leveis..ai o cop n pode assumir a prof de policial ate cumprir a punicao de 3 leveis../punir id level motivo