Respawn in death match zone
#1

when a player goes to a /dm mini-game and died, how do i respawn him in the dm he joined
Reply
#2

You should use Save & Load System.

Y_INI by ******

After you load the value you can check this below OnPlayerSpawn and spawn him from mini-dm
Reply
#3

If you have a variable like InDm put this in OnPlayerSpawn:

pawn Код:
if(InDm[playerid] == 1)
{
    SetPlayerPos(playerid, X, Y, Z); // Replace X Y Z with your coords.
}
If you don't have a variable, put this at the at the end of the #include lines :

pawn Код:
new InDm[MAX_PLAYERS];
Then in the DM command :

pawn Код:
InDm[playerid] = 1;
And in the command where you leave DM :

pawn Код:
InDm[playerid] = 0;
And then use the OnPlayerSpawn code i gave you.

Hope i helped.
Reply
#4

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
If you have a variable like InDm put this in OnPlayerSpawn:

pawn Код:
if(InDm[playerid] == 1)
{
    SetPlayerPos(playerid, X, Y, Z); // Replace X Y Z with your coords.
}
If you don't have a variable, put this at the at the end of the #include lines :

pawn Код:
new InDm[MAX_PLAYERS];
Then in the DM command :

pawn Код:
InDm[playerid] = 1;
And in the command where you leave DM :

pawn Код:
InDm[playerid] = 0;
And then use the OnPlayerSpawn code i gave you.

Hope i helped.
okay thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)