Skins - 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: Skins (
/showthread.php?tid=188137)
Skins -
antsolen - 06.11.2010
I cant change skin if i connect to my server what to do ? I have found TuT but errors . Someones got any FilterScript or Idea ?
AnD 2 question : How i can change player spawning point , im spawning on lv ? i changet setplayerpos but not works ?
Re: Skins -
TouR - 06.11.2010
Use SetPlayerPos and SetPlayerSkin under OnPlayerSpawn
Re: Skins -
antsolen - 06.11.2010
What you means im begginer i need a good tutorial or code or FS
Re: Skins -
Alex_Valde - 06.11.2010
1.) You'll have to AddPlayerClass under your OnGameModeInit() callback.
Something like this:
pawn Код:
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
//copyed from SA-MP Wiki
And you can put more of these with different X, Y, Z coordinates.
Look
here
2.) You'll have to get X,Y and Z coordinates somewhere where you like and than
pawn Код:
AddPlayerClass(0, Your X, Your Y, Your Z, 269.15, 26, 36, 28, 150, 0, 0);
And then when you choose that skin you'll spawn where you wanted.
Re: Skins -
Steven82 - 06.11.2010
Jesus, if you can't even read a wiki tutorial or get the very very very basics of pawn. down then your never going to be a good scripter, i mean im not trying to be rude, read up on the wiki look at some gamemodes, learn what the functions are, thats what i did
Re: Skins -
Alex_Valde - 06.11.2010
Steven82 is right if you wanna learn scripting in pawno, trust me SA-MP Wiki will be your best guide.
And sure, you can always download some gamemode and look in it for some more answers
Re: Skins -
antsolen - 06.11.2010
Thank you all , now i understand that all