SA-MP Forums Archive
DM 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: DM zone (/showthread.php?tid=103214)



DM zone - PANNA - 18.10.2009

can someone please tell me how to make a DM zone where you can fight and when you go out of that zone your weapons will be deleted.

maybe a code?


Re: DM zone - [ATC]eRaZoR - 21.10.2009

Код:
new dm_zone[MAX_PLAYERS];



if(strcmp("/stunt", cmdtext, true, 10) == 0) // your other commads
 	{
		SetPlayerPos(playerid,398.1079,2540.1904,19.6311);
		if(dm_zone[playerid] == 1) // 	This query must always be in each command, unless you want to have weapons with which he and other commands
		{
		  ResetPlayerWeapons(playerid);
		  dm_zone[playerid] = 0;
		  return 1;
		}
		return 1;
	}


 	if (strcmp("/dm", cmdtext, true, 10) == 0) // Dm command
 	{
		SetPlayerPos(playerid,3103.0754,-2289.9517,15.4480);
		GivePlayerWeapon(playerid, 26,64);
		GivePlayerWeapon(playerid, 28,264);
		GivePlayerWeapon(playerid, 30,264);
		dm_zone[playerid] = 1;
		return 1;
	}



Re: DM zone - The.Method.Man - 09.03.2012

can you please help me please
i made a Stunt server so i kno how to make a dm but i want to make a dm zone so when you teleport to the dm zone the stunts cars and evreything will be delet and when you leave the dm zone the evreything is back
and when you die in dm zone you respawn ther
...
if your not in dm zone you cant see the dm zone i mean the map of the dm zone will not be found in stunts zone can someone please help me ?