09.05.2012, 21:30
Can someone give me a description on how to load a players Last Position using Y_INI?
I have no idea on how to do this so yeah..
Thanks.
I have no idea on how to do this so yeah..
Thanks.
public OnPlayerDisconnect(playerid, reason)
{
new Float:pos[3];
GetPlayerPos(playerid,pos[0],pos[1],pos[3]);
// Save these to the file
return 1;
}
public OnPlayerSpawn(playerid)
{
new Float:pos[3];
//load these from the file
SetPlayerPos(playerid,pos[0],pos[1],pos[3]);
return 1;
}