SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Thread Tools Display Modes
Old 07/06/2013, 06:43 PM   #1
Huge Clucker
Join Date: Sep 2008
Posts: 250
Reputation: 26
Default Simple Deathmatch Zones

Simple Deathmatch Zones Include
By: Yuryfury

What is it?
This is an old include that I dug up that I thought some of you might find useful (particularly if you have stunt/freeroam servers). This includes makes it simple to create "deathmatch zones" and regulate what happens when a player either enters or leaves on of these zones.

What functions/callbacks are included?
pawn Code:
native CreateDeathmatchZone(Float:minx,Float:miny,Float:maxx,Float:maxy);
native DestroyDeathmatchZone(dmzoneid);
native IsPlayerInDMZone(playerid,dmzoneid);
native IsPlayerInAnyDMZone(playerid);
native GetPlayerDMZone(playerid);

pawn Code:

Simply add the include to the include folder, add "#include<SimpleDMZones>" to any gamemode/filterscript and add the following callbacks:
pawn Code:
public OnPlayerEnterDeathmatchZone(playerid,dmzoneid)
    return 1;

public OnPlayerLeaveDeathmatchZone(playerid,dmzoneid)
    return 1;

simply paste into notepad and save as a .inc
Yuryfury is offline   Reply With Quote
Old 14/06/2013, 02:53 AM   #2
Join Date: Jul 2010
Posts: 217
Reputation: 17
Default Re: Simple Deathmatch Zones

not too much and not too litte,and easy to modify. good work
Passout is offline   Reply With Quote
Old 14/06/2013, 04:15 AM   #3
Lordzy's Avatar
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,698
Reputation: 1177
Default Re: Simple Deathmatch Zones

Nice, I'd suggest you to use SetPlayerWorldBounds in case if player tries to leave the death match zone without the script doing or not. Like adding, LeaveDm(playerid, dmid), and SetRestrictionsForDM(dmid, bool:restrict) so that if it's set to true others would be in the boundary of the DM itself till the DM or unless the script does it or disconnection of a player.
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] Very SIMPLE DeathMatch script Nataniel Gamemode Scripts 15 23/08/2012 09:28 PM
[FilterScript] Simple DeathMatch Filterscript JustLuca Filterscripts 4 27/11/2011 04:16 PM
Help With Simple Deathmatch Script [BD]SHANU[NR] Scripting Help 24 30/09/2011 08:21 PM
[Include] [INC] Simple Zones v1.0 FreshKilla Includes 14 04/02/2011 08:55 PM
GM Simple DeathMatch matdav Filterscripts 6 05/09/2009 10:54 PM

All times are GMT. The time now is 12:10 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.