SA-MP Forums Archive
[HELP] Selectable current skin - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Selectable current skin (/showthread.php?tid=158535)



[HELP] Selectable current skin - FMK - 10.07.2010



Hello guys,

My problem is:
"When I press the F4 comes to skin select menu. And this skin is CJ SKIN. But I want to this skin is (be) character's current skin."

How do I ?




Re: [HELP] Selectable current skin - RatHack - 10.07.2010

u mean, put other skins?


Re: [HELP] Selectable current skin - Mystique - 10.07.2010

Quote:
Originally Posted by RatHack
View Post
u mean, put other skins?
He's trying to say that he wants the skin that the player had to show up in the class selection instead of CJ's skin.


Re: [HELP] Selectable current skin - Hiddos - 10.07.2010

pawn Code:
public OnPlayerDeath(playerid,killerid,reason)
{
  SetPVarInt(playerid,"Skin",GetPlayerSkin(playerid));
  return 1;
}

public OnPlayerRequestClass(playerid,classid)
{
  SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin"));
  return 1;
}