Saving and loading a player's position and then spawning using onplayerrequestclass.
#10

pawn Код:
public OnPlayerSpawn(playerid)
{
    new Float:x, Float:y, Float:z;
    INI_Float("", x); // In between the " 's, put the name that you titled your position.  i.g. you save the file as positionx, so you load positionx.
    INI_Float("", y);
    INI_Float("", z);
    SetPlayerPos(playerid, x, y, z);
    return 1;
}
Untested. Plus, if you can't seem to figure out what you put between the quotation marks, show me how you save the position.

Never did it like this before, but I think it would work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)