How would this be done?
#2

use the dini include
and use this code
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
  if(reason == 0)
  {
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);    
    dini_FloatSet(thefile, "CrashX", X);
    dini_FloatSet(thefile, "CrashY", Y);
    dini_FloatSet(thefile, "CrashZ", Z);
    return 1;
  }
  return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    new Float:X, Float:Y, Float:Z;
    X = dini_Float(thefile, "CrashX");
    Y = dini_Float(thefile, "CrashY");
    Z = dini_Float(thefile, "CrashZ");
    SetPlayerPos(playerid, X, Y, Z);
    return 1;
}
Reply


Messages In This Thread
How would this be done? - by L30 - 30.06.2009, 22:24
Re: How would this be done? - by James_Alex - 30.06.2009, 23:58
Re: How would this be done? - by Correlli - 01.07.2009, 00:13
Re: How would this be done? - by NiGhTWoLFy - 04.07.2009, 16:33
Re: How would this be done? - by Anarkien - 04.07.2009, 16:37
Re: How would this be done? - by Correlli - 04.07.2009, 16:41
Re: How would this be done? - by L30 - 06.07.2009, 02:27
Re: How would this be done? - by FrazZ - 06.07.2009, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)