23.05.2013, 19:49
Quote:
use essa funзгo:
pawn Код:
|
pawn Код:
public Logarprof(playerid)
{
new string[256];
new nomepl[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomepl, sizeof(nomepl));
format(file2, sizeof(file2), PASTA_CONTAS, nomepl);
if(dini_Int(file2, "Profissao") == Desempregado)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 14, 1);
SetPlayerColor(playerid, Branco);
if(IsPlayerNPC(playerid))
{
if(IsValidDynamic3DTextLabel(NPCLabel[playerid]))
{
format(string, sizeof(string), "%s (%d)", nomepl, playerid);
UpdateDynamic3DTextLabelText(NPCLabel[playerid], Branco, string);
}
}
else
{
if(IsValidDynamic3DTextLabel(ProfLabel[playerid]))
{
UpdateDynamic3DTextLabelText(ProfLabel[playerid], Branco, "[Desempregado(a)]");
}
}
}