How to make people spawn at the location they /q'ed
#6

Quote:
Originally Posted by anant
Посмотреть сообщение
@Crypress - I already got crash recover scripted in the GM.
@Sinner Can make a code? :P btw i use Dini
Try something like:

OnPlayerDisconnect

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
dini_FloatSet(file, "PositionX", x);
dini_FloatSet(file, "PositionY", y);
dini_FloatSet(file, "PositionZ", z);
OnPlayerSpawn

pawn Код:
SetPlayerPosition(playerid, dini_Int(file, "PositionX"));
SetPlayerPosition(playerid, dini_Int(file, "PositionY"));
SetPlayerPosition(playerid, dini_Int(file, "PositionZ"));
Reply


Messages In This Thread
How to make people spawn at the location they /q'ed - by anant - 09.04.2011, 16:48
Re: How to make people spawn at the location they /q'ed - by anant - 09.04.2011, 17:06
Re: How to make people spawn at the location they /q'ed - by Cypress - 09.04.2011, 17:10
Re: How to make people spawn at the location they /q'ed - by Sinner - 09.04.2011, 17:10
Re: How to make people spawn at the location they /q'ed - by anant - 09.04.2011, 17:13
Re: How to make people spawn at the location they /q'ed - by Stigg - 09.04.2011, 17:30
Re: How to make people spawn at the location they /q'ed - by anant - 09.04.2011, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)