Saving player position OnGameModeExit?
#5

pawn Код:
for(new p = 0; p < MAX_PLAYERS; p ++)
    {
        if(IsPlayerConnected(p))
        {
            new file[256];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(p, name, sizeof(name));
            format(file, sizeof(file), USER_FILE, name);
            new Float:x, Float:y, Float:z;
            GetPlayerPos(p, x, y, z);
            dini_FloatSet(file, "XPos", x);
            dini_FloatSet(file, "YPos", y);
            dini_FloatSet(file, "ZPos", z);
            dini_IntSet(file, "Interior", GetPlayerInterior(p));
        }
        return 1;
    }
This doesn't work.
Reply


Messages In This Thread
Saving player position OnGameModeExit? - by austin070 - 06.03.2011, 01:17
Re: Saving player position OnGameModeExit? - by Lorrden - 06.03.2011, 01:45
Re: Saving player position OnGameModeExit? - by austin070 - 06.03.2011, 01:49
Re: Saving player position OnGameModeExit? - by Lorrden - 06.03.2011, 01:54
Re: Saving player position OnGameModeExit? - by austin070 - 06.03.2011, 02:06
Re: Saving player position OnGameModeExit? - by Lorrden - 06.03.2011, 02:23
Re: Saving player position OnGameModeExit? - by austin070 - 06.03.2011, 02:28
Re: Saving player position OnGameModeExit? - by Antonio [G-RP] - 06.03.2011, 04:10
Re: Saving player position OnGameModeExit? - by 1337connor - 06.03.2011, 05:21

Forum Jump:


Users browsing this thread: 3 Guest(s)