10.06.2013, 22:05
So I'm trying to add this line to this command
but every time i do it the pawno gives me a bunch of errors how would i do it? Any help in how to add it and if you don't have this skin it doesn't let you use it and it sends a message?
Код:
if(GetPlayerSkin(playerid) == 285)
Код:
CMD:mask(playerid, params[]) { new name[MAX_PLAYER_NAME]; new string[42]; 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); } else if(PlayerInfo[playerid][pMask] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { ShowPlayerNameTagForPlayer(i, playerid, 1); } } PlayerInfo[playerid][pMask] = 0; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "* %s has put their mask away.", name); ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } return 1; }