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



GangZone - GeKo - 24.06.2009

Hi,
I've a question.
I have just created a GangZone, and asked me how I do it as a weapons-free zone could make.
But this I know not how I do it here and I wanted to ask.

Here is the code of my GangZone:
Код:
new Spawn;

public OnGameModeInit() {
Spawn = GangZoneCreate(-128,4566, 2335,575, 525,5044, 2674,233);
return 1;
}

public OnPlayerSpawn(playerid) {
GangZoneShowForPlayer(playerid, Spawn, 0x00FF0096);
return 1;
}
I hope you can help me.
Thanks in advance


Re: GangZone - abhinavdabral - 24.06.2009

well yes... you can check the area you have selected as weapon free zone like MinX,MaxX,MinY,MaxY ......whenever someone enters that area .... or is in area... you should reset his weapons..Simple..so he will be unarmed there ...
Use this to reset weapons - ResetPlayerWeapons(playerid);

Thank You
Abhinav


Re: GangZone - GeKo - 24.06.2009

Yes. How i make a functional in a GangZone


Re: GangZone - abhinavdabral - 24.06.2009

What you mean by a functional gang Zone? Give me all the details.... I am ready to help you ..