Capture zones - 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: Capture zones (
/showthread.php?tid=427073)
Capture zones -
Iron3man - 31.03.2013
hi guys
i want to make capture zone's for my server with no bugs. Can anyone help me


??
Re: Capture zones -
Red_Dragon. - 31.03.2013
Provide more information about what you want and it's better to post in this section
https://sampforum.blast.hk/showthread.php?tid=413556&page=25
Re: Capture zones -
Iron3man - 31.03.2013
i want a capture zone with a timer of 30 seconds
and after capturing, the player get's 5 score, 10 hp and 10 armour and his teammates get 1 score on capturing.
Make 3 capture zone's for me and rest i will make by myself..
Can you make it??
Re: Capture zones -
Iron3man - 01.04.2013
pls help me
Re: Capture zones -
Azazelo - 01.04.2013
Quote:
Make 3 capture zone's for me and rest i will make by myself..
Can you make it??
|
Код:
enum MainZone{
Zone_Name[28], Float:Zone_Area[6] };
static const SA_ZONE_NAMES[][MainZone] = {
{"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
{"Aldea Malvada", {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
{"Angel Pine", {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}}
};
Here you are,
Re: Capture zones -
Iron3man - 01.04.2013
i have not said that i need gangzone. I said that i need 3 capture zones. And when these capture zone's capture by player then he get 5 score, 10hp, 10 armour and his team get 1 score
can you make it?
AW: Capture zones -
[AK]Nazgul - 01.04.2013
It's not hard
> get the coords of the capture point
> place a checkpoint there(Use a streamer if you need more than one checkpoint at a time)
> OnPlayerEnterCheckpoint set a timer of 30 seconds
Код:
captimer = SetTimer("capturetimer",30000,false);
> OnPlayerLeaveCheckpoint kill the timer
Код:
KillTimer(captimer);
> If the timer is over, use
Код:
forward capturetimer(playerid);
public capturetimer(playerid)
{
// set armor, score and health here
}
Re: Capture zones -
Sting. - 01.04.2013
Learn it. Its not that hard buddy. Same like I did. I also asked questions about this same topic but then a friend who before he left SA-MP helped me with it.
Re: Capture zones -
Iron3man - 01.04.2013
If i use this there is a bug that a player can capture the same zone thousand times
You have not give a "gangzoneflassforall"
Can you please give full code of three capture zone?
And one more thing when i include Streamer an error has occurred saying "File or Function not found"
Re: Capture zones -
Iron3man - 01.04.2013
help me pls