Little problem
#1

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
Reply
#2

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

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?)
Reply
#4

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.
Reply
#5

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

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)