Saving players pos
#8

yeah i just took of the last few steps, its the onplayerdisconnect thats messing me up
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    GetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ] );
    GetPlayerFacingAngle( playerid, Angle[ playerid ] );

    new INI:File = INI_Open( user_ini_file( playerid ) );
    INI_SetTag( File, "position" );
    INI_WriteFloat( File, "PositionX", PosX[ playerid ] );
    INI_WriteFloat( File, "PositionY", PosY[ playerid ] );
    INI_WriteFloat( File, "PositionZ", PosZ[ playerid ] );
    INI_WriteFloat( File, "Angle", Angle[ playerid ] );
    INI_WriteInt( File, "Interior", GetPlayerInterior( playerid ) );
    INI_WriteInt( File, "VirtualWorld", GetPlayerVirtualWorld( playerid ) );
    INI_Close( File );
    return 1;
}
Reply


Messages In This Thread
Saving players pos - by Michael_Cuellar - 02.08.2012, 18:36
Re: Saving players pos - by Roko_foko - 02.08.2012, 18:38
Re: Saving players pos - by Michael_Cuellar - 02.08.2012, 18:48
Re: Saving players pos - by Roko_foko - 02.08.2012, 18:51
Re: Saving players pos - by Michael_Cuellar - 02.08.2012, 18:56
Re: Saving players pos - by DarkB0y - 02.08.2012, 19:02
Re: Saving players pos - by Roko_foko - 02.08.2012, 19:03
Re: Saving players pos - by Michael_Cuellar - 02.08.2012, 20:06
Re: Saving players pos - by Roko_foko - 02.08.2012, 20:15
Re: Saving players pos - by Michael_Cuellar - 02.08.2012, 20:54

Forum Jump:


Users browsing this thread: 1 Guest(s)