06.10.2012, 04:23
(
Последний раз редактировалось DwayneVanKom; 20.10.2012 в 06:12.
)
REMOVED
new HasBoughtMask[MAX_PLAYERS];
CMD:mask(playerid, params[]) { new name[MAX_PLAYER_NAME]; new string[42]; if(HasBoughtMask[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "You don't have a mask."); return 1; } if(PlayerInfo[playerid][pMask] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { ShowPlayerNameTagForPlayer(i, playerid, 0); } } PlayerInfo[playerid][pMask] = 1; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "* %s has put a mask on.", name); ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } return 1; }
enum pInfo { pMask, };