SA-MP Forums Archive
Exit from 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)
+--- Thread: Exit from DM (/showthread.php?tid=588527)



Exit from DM - ZaBraNjeNi - 09.09.2015

#Fixed by myself.


Re: Exit from DM - MBilal - 09.09.2015

Can you explain more?
show the cmd.


Re: Exit from DM - DarkLored - 09.09.2015

Why are you using #define when you can use variables.

pawn Код:
new L_MG[MAX_PLAYERS] = 0;
new L_DM[MAX_PLAYERS] = 0;

CMD:exitdm(playerid, params[])
{
      if(!isnull(params) return SendClientMessage(playerid, -1, "USAGE: /exitdm.");
      L_DM[playerid] = 0;
      SetPlayerPos(playerid, x ,y , z);
      SendClientMessage(playerid, -1, "You left the deathmatch arena.");
      return 1;
}
Modify my code to your liking.