30.05.2013, 21:01
Help me guys! I have here a script from my friend and I want to change the randomskin to what I want. But how? Can anybody help me?
For Male - 299
For Female - 298
For Male - 299
For Female - 298
PHP код:
new randomskin;
if(PlayerInfo[playerid][pGender] == 1) { randomskin = random(sizeof(CivPedsMale)); }
else if(PlayerInfo[playerid][pGender] == 2) { randomskin = random(sizeof(CivPedsFemale)); }
SetPlayerSkin(playerid, randomskin);SetPlayerSkin()
new playerskin = GetPlayerSkin(playerid);
PlayerInfo[playerid][pModel] = playerskin;
PlayerInfo[playerid][pNew] = 1;
PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_NORMAL;
PlayerInfo[playerid][pHealth] = 100;
SetPlayerHealth(playerid, 100);
PlayerInfo[playerid][pArmor] = 0;
PlayerInfo[playerid][pDead] = 0;
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
SetPlayerColor(playerid, TRANSPARENT_WHITE);
return 1;
}