2 quick questions. (NoDmg and SavePlayerPos)
#6

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
If by that you require to save someone's position, you can do it like this

pawn Код:
//On top of your script, outside a callback
new Float:SaveX[MAX_PLAYERS], Float:SaveY[MAX_PLAYERS], Float:SaveZ[MAX_PLAYERS];

//Later on
stock SavePlayerPos(playerid)
{
GetPlayerPos(playerid, SaveX[playerid], SaveY[playerid], SaveZ[playerid];
return 1;
}
Their position will be saved in them values
But how will they spawn at the earlier location they spawned at when they connected before doing /jdm for example?
Reply


Messages In This Thread
2 quick questions. (NoDmg and SavePlayerPos) - by Jason_Roul - 14.09.2013, 14:23
Re: 2 quick questions. (NoDmg and SavePlayerPos) - by [HK]Ryder[AN] - 14.09.2013, 14:24
Re: 2 quick questions. (NoDmg and SavePlayerPos) - by Jason_Roul - 14.09.2013, 14:30
Re: 2 quick questions. (NoDmg and SavePlayerPos) - by [HK]Ryder[AN] - 14.09.2013, 15:09
Re: 2 quick questions. (NoDmg and SavePlayerPos) - by Konstantinos - 14.09.2013, 15:30
Re: 2 quick questions. (NoDmg and SavePlayerPos) - by Jason_Roul - 14.09.2013, 16:05

Forum Jump:


Users browsing this thread: 2 Guest(s)