new Text3D:aSTATUS[MAX_PLAYERS]; CMD:astatus(playerid, params[]) // { if(PlayerInfo[playerid][pAdmin] >= 4) { if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /astatus [text/off]"); if(strcmp(params, "off", true) == 0) { Delete3DTextLabel(aSTATUS[playerid]); SendClientMessageEx(playerid, COLOR_WHITE, "You've Turned Off Your Personal MOTD."); return 1; } aSTATUS[playerid] = Create3DTextLabel(params, 0xFFFFFF, 110.0, 110.0, 110.0, 110.0, 0); Attach3DTextLabelToPlayer(aSTATUS[playerid], playerid, 0.0, 0.0, 0.0); SendClientMessageEx(playerid, COLOR_WHITE, "You've Adjusted Your Personal MOTD."); } return 1; } CMD:astatusoff(playerid, params[]) // { if(PlayerInfo[playerid][pAdmin] >= 4) { DestroyDynamic3DTextLabel(aSTATUS[playerid]); SendClientMessageEx(playerid, COLOR_WHITE, "You've Turned Off Your Personal MOTD."); } return 1; }
CMD:astatusoff(playerid, params[]) // { if(PlayerInfo[playerid] >= 0) { DestroyDynamic3DTextLabel(aSTATUS[playerid]); SendClientMessageEx(playerid, COLOR_WHITE, "You've Turned Off Your Personal MOTD."); } return 1; }
CMD:astatusoff(playerid, params[]) //
{ if(PlayerInfo[playerid] >= 0) { DestroyDynamic3DTextLabel(aSTATUS[playerid]); SendClientMessageEx(playerid, COLOR_WHITE, "You've Turned Off Your Personal MOTD."); } return 1; } |
The problem when i use /astatus off the text label will disappear for everyone using /astatus
|
CMD:astatusoff(playerid, params[]) // { if(PlayerInfo[playerid] >=0) { DestroyDynamic3DTextLabel(aSTATUS[pAdmin]); SendClientMessageEx(playerid, COLOR_WHITE, "You've Turned Off Your Personal MOTD."); } return 1; }
Код:
CMD:astatusoff(playerid, params[]) // { if(PlayerInfo[playerid] >=0) { DestroyDynamic3DTextLabel(aSTATUS[pAdmin]); SendClientMessageEx(playerid, COLOR_WHITE, "You've Turned Off Your Personal MOTD."); } return 1; } |
if(PlayerInfo[playerid] >=0)
DestroyDynamic3DTextLabel