Skin Change Problem!
#1

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

PHP код:
  new randomskin;
    if(
PlayerInfo[playerid][pGender] == 1) { randomskin random(sizeof(CivPedsMale)); }
    else if(
PlayerInfo[playerid][pGender] == 2) { randomskin random(sizeof(CivPedsFemale)); }
    
SetPlayerSkin(playeridrandomskin);SetPlayerSkin()
    new 
playerskin GetPlayerSkin(playerid);
    
PlayerInfo[playerid][pModel] = playerskin;
    
PlayerInfo[playerid][pNew] = 1;
    
PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_NORMAL;
    
PlayerInfo[playerid][pHealth] = 100;
    
SetPlayerHealth(playerid100);
    
PlayerInfo[playerid][pArmor] = 0;
    
PlayerInfo[playerid][pDead] = 0;
    
SetPlayerScore(playeridPlayerInfo[playerid][pLevel]);
    
SetPlayerColor(playeridTRANSPARENT_WHITE);
    return 
1;

Reply
#2

pawn Код:
if(PlayerInfo[playerid][pGender] == 1) { SetPlayerSkin(playerid, 299); }
    else if(PlayerInfo[playerid][pGender] == 2) {SetPlayerSkin(playerid, 298);  }
    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;
}
Reply
#3

Holy Cow! Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)