10.05.2018, 23:14
Code:
new Text3D:TextProcu[MAX_PLAYERS];
public TextProcu()
{
for(new i = 0; i <= GetPlayerPoolSize(); i++)
{
new string[256];
if(GetPlayerWantedLevel(i) > 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(string,256,"||-||PROCURADO||[%d]",GetPlayerWantedLevel(i));
TextProcu[playerid] = CreatePlayer3DTextLabel(playerid, string, COLOR_RED, x, y, z+1.0, 40.0, GetPlayerVirtualWorld(playerid), 1);
UpdatePlayer3DTextLabelText(playerid, TextProcu[playerid], COLOR_RED, string);
}
else if(GetPlayerWantedLevel(i) == 0)
{
Delete3DTextLabel(TextProcu[playerid]);
}
}
}

