23.02.2011, 10:14
Код:
new Text3D:label[MAX_PLAYERS]; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/adminonduty", cmdtext, true, 10) == 0) { label[playerid] = Create3DTextLabel("Admin on Duty!",0x008080FF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); return 1; } return 0; } public OnPlayerDisconnect(playerid, reason) { Delete3DTextLabel(label[playerid]); return 1; }