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 :
Then in the DM command :
And in the command where you leave DM :
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 :
Then in the DM command :
And in the command where you leave DM :
And then use the OnPlayerSpawn code i gave you.
Hope i helped.
|
okay thx