SA-MP Forums Archive
OnPlayerSpawn bug? - 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)
+--- Thread: OnPlayerSpawn bug? (/showthread.php?tid=364024)



OnPlayerSpawn bug? - fordawinzz - 29.07.2012

Whenever I join my server and click Spawn it shows me up 'Stay within the world boundries', wtf? I don't have anything in my OnPlayerSpawn.


Re: OnPlayerSpawn bug? - KingyKings - 29.07.2012

Are you using your own script?

make sure there is no boundaries in your script, if there is it will be interfering probably.


Re: OnPlayerSpawn bug? - Glint - 29.07.2012

Do you have AddPlayerClass Under your OnGameModeInit.


Re: OnPlayerSpawn bug? - fordawinzz - 29.07.2012

Forgot about class, ty Lexi' !


Re: OnPlayerSpawn bug? - Devilxz97 - 29.07.2012

wiki.sa-mp.com/wiki/AddPlayerClass

pawn Код:
(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
skin    The skin which the player will spawn with.
Float:X The X coordinate of the spawnpoint of this class.
Float:Y The Y coordinate of the spawnpoint of this class.
Float:Z The Z coordinate of the spawnpoint of this class.
Float:Angle The direction in which the player should face after spawning.
weapon1 The first spawn-weapon for the player.
weapon1_ammo    The amount of ammunition for the primary spawnweapon.
weapon2 The second spawn-weapon for the player.
weapon2_ammo    The amount of ammunition for the second spawnweapon.
weapon3 The third spawn-weapon for the player.
weapon3_ammo    The amount of ammunition for the third spawnweapon.
pawn Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:angle, weapon1, ammo1, weapon2, ammo2, weapon3, ammo3);