SA-MP Forums Archive
Little problem - 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: Little problem (/showthread.php?tid=309900)



Little problem - oliver12 - 09.01.2012

Hello!
I have started to create my own RP gamemode (Because I am tired of GF, GF edits,...). I took Basic Mysql Gm and started studing. I learned al lot but then I crossed a problem. I want to do so that after registration script puts player to my given cordinates(Airport, I tried SetPlayerPos). That won't work. do I have to create a class or something? Here's my GM. I thinks, the solution is very easy, but please help me. Thank you
PS! There are many mistakes here, because this is not my mother tongue and I am a estonian


Re: Little problem - Konstantinos - 09.01.2012

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid, X, Y, Z);
    SetPlayerInterior(playerid, 0);
    // Rest
    return 1;
}



Re: Little problem - oliver12 - 09.01.2012

I am not familiar with that. OnPlayerSpawn requires Player to press Spawn? Can it be done automaticaly? But thanks for the reply and I have a position saving and loading system so this can't work that way(Or does it?)


Re: Little problem - Konstantinos - 09.01.2012

If you are saving the position and you load it, thats will be a problem. You should choose one of those two.
* Load the saved Position
* Set player's position to the Airport.


Re: Little problem - oliver12 - 09.01.2012

Well, I want to set player position only after registration(Not after log-in)


Re: Little problem - oliver12 - 10.01.2012

BUMP