Skin Change Problem! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Skin Change Problem! (
/showthread.php?tid=440686)
Skin Change Problem! -
RalphHaro - 30.05.2013
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(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;
}
Re: Skin Change Problem! -
mahdi499 - 30.05.2013
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;
}
Re: Skin Change Problem! -
RalphHaro - 30.05.2013
Holy Cow! Thanks