15.08.2016, 14:29
Код:
CMD:nextskin(playerid,params[]) { SetPlayerSkin(playerid, GetNextSkin(playerid)); return true; } GetNextSkin(playerid) { new str[20], OldSkin, NewSkin; OldSkin = GetPlayerSkin(playerid); format(str,20,"your skin %d", OldSkin); SCM(playerid,-1, str); if(OldSkin > 310) { NewSkin = 0; } else { NewSkin = OldSkin + 1; } if(NewSkin == 14 || NewSkin == 15 || NewSkin == 20) { // code ? } format(str,20,"your next skin %d", NewSkin); SCM(playerid,-1, str); return NewSkin; }