05.03.2016, 21:50
Код:
//add pMasked and pMask to your enum pInfo COMMAND:mask(playerid, var[]) { new string[128]; if(!Logged(playerid)) return NoLogin(playerid); if(PlayerInfo[playerid][admin] || PlayerInfo[playerid][premiumgold] || PlayerInfo[playerid][playerfaction]==FBI || PlayerInfo[playerid][playerlvl]>= 15) { Player[playerid][pMasked] = 1; format(string, sizeof(string), "* %s has put his mask on his face.", GetName(playerid)); SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(i, playerid, false); } } else { Player[playerid][pMasked] = 0; format(string, sizeof(string), "* Stranger has removed the mask from his face."); SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(i, playerid, true); } } return 1; }
give me some rep m8