28.08.2011, 15:32
pawn Code:
new Text3D:policewanted[MAX_PLAYERS];
forward PlayerPolice(playerid);
public PlayerPolice(playerid)
{
if(GetPlayerWantedLevel(playerid) > 0)
{
policewanted[playerid] = Create3DTextLabel("WANTED BY POLICE", 0xFF2800FF, 0, 0, 0, 50, 0, 1);
Attach3DTextLabelToPlayer(policewanted[playerid], playerid, 0.0, 0.0, 0.7);
}
}
forward PlayerPoliceunwanted(playerid);
public PlayerPoliceunwanted(playerid)
{
if(GetPlayerWantedLevel(playerid) == 0)
{
Delete3DTextLabel(policewanted[playerid]);
}
}