18.12.2009, 01:36
Код:
new Text3D:afk[MAX_PLAYERS];
Код:
if (strcmp("/afk", cmdtext, true, 10) == 0) { GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),".:: %s (ID: %d) ушел в AFK! ::.",playername,playerid); SendClientMessageToAll(COLOR_ERROR, string); afk[playerid] = Create3DTextLabel("afk",0xff0000FF,0.0,0.0,0.0,40.0,0); Attach3DTextLabelToPlayer(afk[playerid], playerid, 0.0, 0.0, 0.0) return 1; }
Код:
if (strcmp("/comeback", cmdtext, true, 10) == 0) { GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),".:: %s (ID: %d) вернулся из AFK! ::.",playername,playerid); SendClientMessageToAll(COLOR_YELLOW2, string); DeletePlayer3DTextLabel(playerid,PlayerText3D:afk[playerid]); return 1; }