14.06.2015, 20:50
I've made this CMD to add a personal status for admins ..
when you use '/astatus text' a text label will be attached on you when using '/astatus off' or '/astatusoff' it will go
THE PROBLEM: When i use '/astatus off' or '/astatusoff' The text label Disappear for all users, and i want it to disappear for playerid only help please...
when you use '/astatus text' a text label will be attached on you when using '/astatus off' or '/astatusoff' it will go
THE PROBLEM: When i use '/astatus off' or '/astatusoff' The text label Disappear for all users, and i want it to disappear for playerid only help please...
Код:
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;
}


