SA-MP Forums Archive
please help me with my gangzone scriptin - 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: please help me with my gangzone scriptin (/showthread.php?tid=360675)



please help me with my gangzone scriptin - Reggie_81 - 18.07.2012

hi
i be workin on gangzone these days
have set a 6 checkpoints toward 6 different zones

how do i let this happen?
when ppl step into a checkpoint
make a countdown of 60 sec
after 60 sec, if the ppl s still there, he ll take the zone ?

the most difficult part for me is how do i make a countdown?
and when ppl step out of the zone stop the countdown

plz help , appreciate that~


Re: please help me with my gangzone scriptin - [KHK]Khalid - 18.07.2012

For the countdown part you can read this tutorial about countdowns. You can use OnPlayerEnterCheckpoint to detect when a player enters a checkpoint and OnPlayerLeaveCheckpoint to detect when a player leaves a checkpoint.


Re: please help me with my gangzone scriptin - Reggie_81 - 18.07.2012

thx a lot for ur help!aprreciate that!
but if 1 ppl is capturing a zone,another 1 enter the CP.
how to avoid let the later 1 to start a new capture while the former 1 is still countin down for 60sec?
thx1111111!!!


Respuesta: please help me with my gangzone scriptin - HarlemSAMP - 18.07.2012

Maybe try On‌PlayerLeaveCheckpoint = false and sendclientmessage ~r~ "You can't capture untill you kill the guy" or something like this, i'm just telling you the idea, hope you get it


Re: Respuesta: please help me with my gangzone scriptin - Reggie_81 - 19.07.2012

thx for ur help anyway!aprreciate that!