08.05.2013, 22:19
Esse eh o comando ! ↓↓
Eu coloco /procurar [ID] [MOTIVO] , Vai normal mais sу quк eu coloco /procurados o jogador quк eu procureii nгo tб nos procurados mais no PC Dele lб aparece ele com as estrelas , oquк eu tenho quк arrumar no comando pra ele aparecer nos procurados quando eu procurar ?
PHP код:
if(strcmp(cmd, "/procurar", true) == 0)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 3)
{
new plid, motivo[64];
if(sscanf(cmdtext, "s[12]us[64]", cmd, plid, motivo))
{
SendClientMessage(playerid, Vermelho, "Use: /procurar [id] [motivo]");
return 1;
}
if(plid == playerid)
{
SendClientMessage(playerid, Vermelho, "Vocк nгo pode se procurar.");
return 1 ;
}
if(!IsPlayerConnected(plid))
{
SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
}
else
{
if(GetDistanceBetweenPlayers(plid, playerid) < 10)
{
SetPlayerWantedLevel(plid, 2);
format(string, sizeof(string), "O(A) policial %s te setou um nivel de procurado, voce й um suspeito.", GetPlayerNameEx(playerid));
SendClientMessage(plid, Vermelho, string);
format(string, sizeof(string), "O(A) jogador(a) %s esta sendo procurado(a) por %s. Motivo: %s", GetPlayerNameEx(plid), GetPlayerNameEx(playerid), motivo);
SendClientMessageToAll(Blue, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Chegue mais perto para tornar essa pessoa um suspeito.");
}
}
}
else
{
SendClientMessage(playerid,Vermelho, "Apenas policiais podem usar este comando.");
}
return 1;
}