When you die inside of an event you get sent to the hospital?
#8

on top
pawn Код:
new Float:EventX[MAX_PLAYERS],Float:EventY[MAX_PLAYERS],Float:EventZ[MAX_PLAYERS];
new EventInt[MAX_PLAYERS];
new EventVW[MAX_PLAYERS];
new NeedEventSpawn[MAX_PLAYERS];

OnPlayerdDeath

GetPlayerPos(playerid,EventX[playerid],EventY[playerid],EventZ[playerid]);
EventInt[playerid] = GetPlayerInterior(playerid);
EventVW[playerid] = GetPlayerVirtualWorld(playerid);
NeedEventSpawn[playerid] = 1;

OnPlayerSpawn

if(NeedEventSpawn[playerid] == 1) //Place this in the top of OnPlayerspawn, but after all others things, in place where you starts to set pos on spawns, etc.
{
NeedEventSpawn[playerid] = 0;
SetPlayerInterior(playerid,EventInt[playerid]);
SetPlayerPos(playerid,,EventX[playerid],EventY[playerid],EventZ[playerid]);
SetPlayerVirtualWorld(playerid,EventVW[playerid]);
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)