SA-MP Forums Archive
How to let a player stay in a dm - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to let a player stay in a dm (/showthread.php?tid=142977)



How to let a player stay in a dm - [Ha]Lommo - 20.04.2010

Hi! , i have a dmmenu but when you got killed in the dm youll go back to your spawnplace..
I want that youll stay in the dm until you type something like for example: /exitdm

How do i do it?

Ty,


Re: How to let a player stay in a dm - RyDeR` - 20.04.2010

Just set the value of the integer to 0.


Re: How to let a player stay in a dm - Torran - 20.04.2010

pawn Код:
public OnPlayerSpawn(playerid)
{
if(DMArea[playerid] == DMAREA)
{
SetPlayerPos(playerid, X,Y,Z);
}
return 1;
}