25.04.2014, 06:58
Code:
if(dialogid == DIALOG_SPAWN) { if(response || !response) { for(new x;x<10000;x++) { new rand=random(300); if(PlayerInfo[playerid][pSex] == 0) { if(IsValidSkin(rand)) { PlayerInfo[playerid][pModel] = rand; SetPlayerSkin(playerid, rand); break; } } else { if(IsFemaleSkin(rand)) { PlayerInfo[playerid][pModel] = rand; SetPlayerSkin(playerid, rand); break; } } }