OnPlayerSpawn Bug? OR - 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: OnPlayerSpawn Bug? OR (
/showthread.php?tid=172472)
OnPlayerSpawn Bug? OR -
Quest123 - 30.08.2010
Yeah just another problem with my script ( as usual (: )
When ever i go In Game, and pick a skin from the skin class, when ever i click spawn, i spawn, but i saw as the CJ skin, always, so not matter what skin i pick, i will spawn as CJ, i tried to remove the CJ skin from the script, but that didn't do anything, i looked at ' OnPlayerSpawn ' and i couldn't find anything.
Have you got any ideas what this could be?
Re: OnPlayerSpawn Bug? OR -
Mauzen - 30.08.2010
Hm, do you use SetPlayerSkin somewhere in your script or in a filterscript? Maybe something is wrong with this then, and it always sets the skin to 0 (cj)
Re: OnPlayerSpawn Bug? OR -
Quest123 - 30.08.2010
Yeah i got it in a filter script, its in 'LuX Admin' Script, but not to sure its safe to take it out :/ Any other way i could fix this?
Re: OnPlayerSpawn Bug? OR -
Voldemort - 30.08.2010
Do you any classes added on Gamomodeinit ?
Re: OnPlayerSpawn Bug? OR -
Quest123 - 30.08.2010
Quote:
Originally Posted by Voldemort
Do you any classes added on Gamomodeinit ?
|
All my classes are on GameModeInit?
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Fruity DM 1.5");
ShowPlayerMarkers(1);
ShowNameTags(1);
EnableStuntBonusForAll(0);
UsePlayerPedAnims();
// Player Class's
AddPlayerClass(102,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
and it just carry on for the rest of the classes.