SA-MP Forums Archive
Need character selection help - 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: Need character selection help (/showthread.php?tid=166232)



Need character selection help - Hippotipus - 07.08.2010

Ok so when ever i choose a character when im testing my server, no matter what character i choose when i press spawn, i spawn as cj. Any one know how to fix this, im new to pawno and am not sure what im doing wrong...


Re: Need character selection help - xfelipex - 07.08.2010

https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: Need character selection help - Shockey - 07.08.2010

Hmmm maybe post your AddPlayerClass and then I maybe able to help


Re: Need character selection help - Hippotipus - 07.08.2010

I only have a few classes for testing purposes
Код:
	AddPlayerClass(0,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(16,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(29,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(33,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(68,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(70,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(93,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(101,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(120,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(165,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);
	AddPlayerClass(190,1279.2164,-828.4896,83.1406,180.6908,0,0,0,0,0,0);



Re: Need character selection help - Shockey - 07.08.2010

Hmmm there is nothing wrong with that

hmmm can you actually see the players in the class selection screen


Re: Need character selection help - Hippotipus - 07.08.2010

yes i can go across to other characters and see them but when i get to the character i want and press spawn, it spawns as cj


Re: Need character selection help - Shockey - 07.08.2010

Hmmm dunno

have you tried copying everything in the gamemode into a new one


Re: Need character selection help - Daren_Jacobson - 08.08.2010

Check your code for SetPlayerSkin


Re: Need character selection help - Hippotipus - 08.08.2010

Yes i have tried copying every thing to a new script
Quote:

Look at
pawn Code:

public OnPlayerRequestClass(playerid, classid){

https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
i have looked at that but thanks
Quote:

Check your code for SetPlayerSkin

theres nothing in my script like that, is that what i need?


Re: Need character selection help - Daren_Jacobson - 08.08.2010

Quote:
Originally Posted by Hippotipus
Посмотреть сообщение
theres nothing in my script like that, is that what i need?
no, if it was there it would be the thing setting your skin to 0.