15.07.2012, 00:40
Ja tentei fazer desse cmd assim: /removerlistap [id] [motivo] mais nгo consigo, ai tinha que apareзer pra todos O policial % removeu da lista de procurados o jogador %.
pawn Код:
if(strcmp(cmd, "/removerlistap", true) == 0)
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Recruta || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "pAdm01") == 1){
new tmp[256];
tmp = strtok(cmdtext, idx);
new plid;
plid = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFD39BAA, "Use: /removerlistap [id]");
return 1;
}
if(IsPlayerConnected(plid))
{
new str[128];
new giveplayer[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(plid, giveplayer, sizeof(giveplayer));
format(str, sizeof(str), "{0099FF}[x]{CCCCFF} O policial %s tirou vocк da lista de procurados!", sendername);
SendClientMessage(plid, 0xFFD39BAA, str);
format(str, sizeof(str), "{0099FF}[x]{CCCCFF} Vocк retirou o jogador %s da lista de procurados!", giveplayer);
SendClientMessage(playerid, 0xFFD39BAA, str);
dini_IntSet(file, "Procurado", 0);
SetPlayerWantedLevel(plid, 0);
Procurados[plid]= 0;
return 1;
}
else
{
SendClientMessage(playerid, 0xFFD39BAA, "(ERRO) Jogador nгo conectado ou esse e seu id");
return 1;
}
}