Save Positions.
#1

I have add'ed this:

In enum pInfo:
Код:
	Float:pCrashPos_x,
	Float:pCrashPos_y,
	Float:pCrashPos_z,
In OnPlayerConnect(playerid):
Код:
	SetPlayerPos(playerid, PlayerInfo[playerid][pCrashPos_x], PlayerInfo[playerid][pCrashPos_y], PlayerInfo[playerid][pCrashPos_z]);
In OnPlayerDisconnect(playerid):
Код:
	GetPlayerPos(playerid, PlayerInfo[playerid][pCrashPos_x], PlayerInfo[playerid][pCrashPos_y], PlayerInfo[playerid][pCrashPos_z]);
WHAT I WANT TO DO? : When you disconnect from the server, your positions save, and after you log in to be in that positions ..
Reply


Messages In This Thread
Save Positions. - by GaB1TzZzu - 11.01.2011, 14:26
Re: Save Positions. - by JaTochNietDan - 11.01.2011, 14:27
Re: Save Positions. - by GaB1TzZzu - 11.01.2011, 14:28
Re: Save Positions. - by JaTochNietDan - 11.01.2011, 14:30
Re: Save Positions. - by GaB1TzZzu - 11.01.2011, 14:41
Re: Save Positions. - by JaTochNietDan - 11.01.2011, 14:43
[No subject] - by GaB1TzZzu - 11.01.2011, 14:51
Re: Save Positions. - by DVDK - 11.01.2011, 16:12
Re: Save Positions. - by GaB1TzZzu - 11.01.2011, 16:43
Re: Save Positions. - by KaleOtter - 11.01.2011, 16:48

Forum Jump:


Users browsing this thread: 6 Guest(s)