29.11.2009, 14:15
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/nameoff", true) == 0) { if (PlayerInfo[playerid][pLevel] >= 10) { for(new a=0; a<MAX_PLAYERS; a++) { ShowPlayerNameTagForPlayer(playerid, a, false); } SendClientMessage(playerid,COLOR_YELLOW,"[INFORMATION] Your name tag has been hidden."); PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0); return 1; } } if(strcmp(cmdtext, "/nameon", true) == 0) { if (PlayerInfo[playerid][pLevel] >= 10) { for(new a=0; a<MAX_PLAYERS; a++) { ShowPlayerNameTagForPlayer(playerid, a, true); } SendClientMessage(playerid,COLOR_YELLOW,"[INFORMATION] Your name tag is now visible."); PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0); return 1; } } return 1; }