22.05.2013, 23:39
Код HTML:
if(strcmp(cmd, "/revistar", true) == 0)
{
new plid;
if(sscanf(cmdtext, "s[7]u", cmd, plid))
{
SendClientMessage(playerid, COLOR_GREEN, "Use /revistar [id]");
return 1;
}
if(IsPlayerConnected(plid))
{
if(GetDistanceBetweenPlayers(plid, playerid) < 21)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(plid));
SendClientMessage(playerid, verdel, "~~~~~~~~~~~~~~ REVISTANDO ~~~~~~~~~~~~~~");
format(string, sizeof(string), "- Maconha: %d", dini_Int(file, "Maconha"));
SendClientMessage(playerid, 0xFFFFFFAA, string);
format(string, sizeof(string), "- Crack: %d", dini_Int(file, "Crack"));
SendClientMessage(playerid, 0xFFFFFFAA, string);
format(string, sizeof(string), "- Cocaina: %d", dini_Int(file, "Cocaina"));
SendClientMessage(playerid, 0xFFFFFFAA, string);
SendClientMessage(playerid, Vermelho, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
format(string, sizeof(string), "- Maconha no sangue: %d", dini_Int(file, "tmaconha"));
SendClientMessage(playerid, 0xFFFFFFAA, string);
format(string, sizeof(string), "- Crack no sangue: %d", dini_Int(file, "tcrack"));
SendClientMessage(playerid, 0xFFFFFFAA, string);
format(string, sizeof(string), "- Cocaнna no sangue: %d", dini_Int(file, "tcocaina"));
SendClientMessage(playerid, 0xFFFFFFAA, string);
SendClientMessage(playerid, verdel, "~~~~~~~~~~~~~~ REVISTANDO ~~~~~~~~~~~~~~");
format(string, sizeof(string), "Vocк estб revistando o(a) jogador(a) %s ", GetPlayerNameEx(plid));
SendClientMessage(playerid, COLOR_GREEN, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Chega mais perto para revistar!");
}
}
else
{
SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
}
return 1;
}
Код HTML:
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(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") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 2 || PlayerInfo[playerid][SCON] == true)

