SA-MP Forums Archive
Kick on spawn? - 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: Kick on spawn? (/showthread.php?tid=309224)



Kick on spawn? - prisonliferp - 06.01.2012

Hello there, so uhm I'm currently making an major edit of Alexzz LOST:RP Script (Re-edit by Gold)

And before doing anything I compile to 0.3d ofc and all that stuff, I fix the compile errors and it appears to be working.

I go ingame and finish the quiz and tutorial, I even register and choose my talent, but as SOON as I spawn at my spawnpoint I get kicked.. New players get kicked, old players, everyone.

It gives no error outputs in PAWNO or Console.. Any idea on this fellas?


EDIT: I even looked the script through and there is no Kick(playerid); ANYWHERE besides at /kick commands. (And non-rp name kicker)


Re: Kick on spawn? - Jakku - 06.01.2012

Using SpawnPlayer will kick you in 0.3d R2. Use SetSpawnInfo before spawning the player


Re: Kick on spawn? - prisonliferp - 06.01.2012

A'right, moving in game to test this out now


Re: Kick on spawn? - prisonliferp - 06.01.2012

Quick question: Do I have to use the exact parameters like "SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );"

-Or would I simply be able to use "SetSpawnInfo(Playerid);"


Re: Kick on spawn? - Jakku - 06.01.2012

The first one.


Re: Kick on spawn? - prisonliferp - 06.01.2012

Problem solved, I'm spawning the wrong place though (Might be this error's fault:
Quote:

: warning 202: number of arguments does not match definition

)

Old code:
Quote:

SetSpawnInfo( playerid, 0, 15, 210.1676,-225.8301,1.7786,177.2934, 0, 0, 0, 0, 0, 0 );

New code:
Quote:

SetSpawnInfo(playerid, 15, 210.1676,-225.8301,1.7786,177.2934, 0, 0, 0, 0, 0, 0 );

EDIT: Works now, I get a massive ammount of errors, yet it's just wrong tags or something, it still works, I'll finish the rest later, thanks!