Spawn His Place When Died
#5

hm...yea possible..in this case do:
this at the defines and so on..
Код:
enum PlayerInfo
{
Spawnx,
Spawny,
Spawnz,
Face
}
new PlayerData[MAX_PLAYERS][PlayerInfo];
then do that at OnPlayerDeath:
Код:
new Float:Coords[3];
GetPlayerPos(playerid, Coords[1], Coords[2], Coords[3]);
PlayerData[playerid][Spawnx] = Coords[1];
PlayerData[playerid][Spawny] = Coords[2];
PlayerData[playerid][Spawnz] = Coords[3];
PlayerData[playerid][Face] = GetPlayerFacingAngle(playerid);
Then: OnPlayerSpawn
Код:
SetPlayerPos(playerid, PlayerData[playerid][Spawnx], PlayerData[playerid][Spawny], PlayerData[playerid][Spawnz]);
SetPlayerFacingAngle(playerid, PlayerData[playerid][Face]);
i guess that could work.. (if you mean what Sinyavski said)...

ah and btw..please correct it, if i made a mistake:P
Reply


Messages In This Thread
Spawn His Place When Died - by AK47317 - 28.03.2010, 06:04
Re: Spawn His Place When Died - by jamesbond007 - 28.03.2010, 06:07
Re: Spawn His Place When Died - by Sascha - 28.03.2010, 10:29
Re: Spawn His Place When Died - by Norck - 28.03.2010, 10:59
Re: Spawn His Place When Died - by Sascha - 28.03.2010, 13:47
Re: Spawn His Place When Died - by Norck - 28.03.2010, 14:27
Re: Spawn His Place When Died - by AK47317 - 29.03.2010, 03:24
Re: Spawn His Place When Died - by AK47317 - 16.04.2010, 10:07
Re: Spawn His Place When Died - by Think - 16.04.2010, 10:23
Re: Spawn His Place When Died - by AK47317 - 17.04.2010, 01:57

Forum Jump:


Users browsing this thread: 2 Guest(s)