Please Help Me In Spawn
#1

hello friends please help me, in this Interior (Name. Kickstart) (XYZ POS. -1465.268676,1557.868286,1052.531250) (ID. 14) if player die in this interior then he should spawn from this interior because i have made death stadium system and now i dont know how can i spawn players from that interior when he dies in that interior please Help me.....
Reply
#2

Under OnPlayerSpawn(playerid) check if the player should spawn in that interior. If he should, just teleport him there.
Reply
#3

can you explain me how can i?
Reply
#4

When the "Death Stadium" mode is ON and a player enters this interior, set a variable like DeathStadium[playerid] = 1. When Death Stadium mode is OFF, keep that variable to 0. Now, obviously when a player participates in the Death Stadium, DeathStadium[playerid] will be 1. From this point, all you have to do is add an if-statement under OnPlayerSpawn that looks like this:
pawn Код:
if(DeathStadium[playerid] == 1)
{
//teleport playerid to the Death Stadium interior
}
Reply
#5

you did not understand what i am saying i have made a checkpoint on going this checkpoint it will spawn me at the death stadium interior and i want this if player die in that interior he should spawn from there not from gamemode spawn points and if player not in that interior then his spawn points should be random of the gamemode spawn points
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)