26.02.2016, 20:51
Eae galera, seguinte, alterei um comando de /setprof pra /setbope, ou seja, comando apenas pra seta a profissгo do bope, segue o comando:
Porйm in-game sу fica "VOCК NГO Й LНDER DO BOPE", n sei onde eu errei, se alguйm poder me ajudar aew agradeзo..
OBS: O ID do bope й 8.
PHP код:
if(strcmp(cmd, "/setbope", true) == 0)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(dini_Int(file, "aAdmin") == 5)
{
new plid, prof;
if(sscanf(cmdtext, "s[9]ud", cmd, plid, prof))
{
SendClientMessage(playerid, Vermelho, "Digite: /setbope [id] [8]");
return 1;
}
if(IsPlayerConnected(plid))
{
if(prof > 7 && prof < 9)
{
if(pAdmin[playerid] != 5)
{
SendClientMessage(playerid, Vermelho, "Vocк nгo tem permissгo para setar esta profissaх.");
return 1;
}
}
format(file2, sizeof(file2), PASTA_CONTAS, GetPlayerNameEx(plid));
dini_IntSet(file2, "Profissao", prof);
SpawnPlayer(plid);
format(string, sizeof(string), "%s te alistou pro BOPE", GetPlayerNameEx(playerid), playerid, prof);
SendClientMessage(plid, tcadm, string);
format(string, sizeof(string), "Vocк alistou %s para o BOPE", GetPlayerNameEx(plid), plid, prof);
SendClientMessage(playerid, Blue, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Jogador nгo conectado.");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк nгo й o lнder do BOPE!");
}
return 1;
}
OBS: O ID do bope й 8.