30.08.2008, 08:00
You could of done this:
Put these at the bottom of your [FS].
Then:
Just trying to help .
( Taken from my Nametags [FS] )
Put these at the bottom of your [FS].
Код:
stock Namesoff(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, false); } }
Код:
stock Nameson(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, true); } }
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/namesoff", cmdtext, true, 10) == 0) { Namesoff(playerid); // This turns the nametags off for those who type /namesoff only. SendClientMessage(playerid, COLOR_YELLOW, "[SUCCESS] You have turned nametags off."); return 1; } if (strcmp("/nameson", cmdtext, true, 10) == 0) // Change if needed to what you please. { Nameson(playerid); SendClientMessage(playerid, COLOR_YELLOW, "[SUCCESS] You have turned nametags on."); return 1; } return 0; }
( Taken from my Nametags [FS] )