SA-MP Forums Archive
Respawn in death match zone - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Respawn in death match zone (/showthread.php?tid=443986)



Respawn in death match zone - InTeL_cOrE_i7 - 14.06.2013

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


AW: Respawn in death match zone - Skimmer - 14.06.2013

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


Re: Respawn in death match zone - SilverKiller - 14.06.2013

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.


Re: Respawn in death match zone - InTeL_cOrE_i7 - 14.06.2013

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