automatic spawn with 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: automatic spawn with skin (
/showthread.php?tid=126251)
automatic spawn with skin -
bartje01 - 07.02.2010
Hey guys. I wanna have that when you log back in you automaticly spawn with your last used skin.
Can someone maybe help me and put it in my admin script?
I really need this.
http://pastebin.com/m14f39f12
I want that it goes in that script.
Thanks for reading though
Re: automatic spawn with skin -
NewYorkRP - 07.02.2010
under
add
pSkin,
On onplayerspawn, add
Код:
if (PlayerInfo[playerid][pSkin] > 1)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SendClientMessage(playerid, COLOR_RED, "Your last used skin has been loaded!");
}
And when you choose a skin, add under it
PlayerInfo[playerid][pSkin] = (What SKIN ID it is);
example:
Код:
PlayerInfo[playerid][pSkin] = 120;
I saw you already had pSkin, you just need to search for pLevel, and make one the same but rename it to pSkin.
Re: automatic spawn with skin -
bartje01 - 07.02.2010
Damn. Doesn't work. can someone just add it to my script? Would be much easeier