24.11.2012, 23:13
pawn Код:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 2) return 0;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(PlayerInfo[playerid][pAdminDuty] == 0)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
DestroyDynamic3DTextLabel(Aduty3D[playerid]);
Aduty3D[playerid] = CreateDynamic3DTextLabel("blabla",COLOR_RED,X,Y,Z,4.0,playerid);}
}
else
{
DestroyDynamic3DTextLabel(Aduty3D[playerid]);
//SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
}
return 1;
}
Again, the "IF" statements are NOT the problem here, yes, they are illogical but that's because I've deleted the code.
And the code that I've deleted has nothing to do with the 3DText labels.