26.03.2013, 06:22
Okay, so I've got an /adutyon command: when I type it I want a 3D Text Label to appear directly above the players head, but when I type it in game it does nothing.
Can you take a look and give me a hand with it? Thanks!
Can you take a look and give me a hand with it? Thanks!
pawn Код:
CMD:adutyon(playerid,params[])
{ //This will open the command
if(PlayerInfo[playerid][pAdminLevel] >=1)
{
new Text3D:label = Create3DTextLabel("ADMINISTRATOR IS ON DUTY!", COLOR_GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
SendClientMessage(playerid,COLOR_GREEN,"[INFO] You are now on administrator duty.");
SetPlayerHealth(playerid,99999);
SetPlayerArmour(playerid,99999);
SetPlayerColor(playerid, COLOR_GREEN);
return 1;
}
else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
}