+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Stats ezBlock

Members
Total Members: 553
Latest: Luisecm
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 1285
Total Topics: 213
Most Online Today: 0
Most Online Ever: 56
(September 03, 2013, 07:42:33 am)
Users Online
Members: 0
Guests: 0
Total: 0

Author Topic: need help with king of the hill  (Read 82 times)

Offline nathan

  • VG Member
  • *
  • Posts: 33
  • Character: Nathan
  • Referrals: 1
    • View Profile
need help with king of the hill
« on: March 17, 2013, 09:44:41 pm »
as in the title im trying to make a king of the hill map but i need help with the scripting,
if someone wants to help me out here who knows a bit of scripting
( i need a border and a capture zone + timer )

thanks in advance

Share on Facebook Share on Twitter Share on Google+


Offline Jackson

  • Administrator
  • *
  • Posts: 194
  • Referrals: 4
    • View Profile
Re: need help with king of the hill
« Reply #1 on: March 17, 2013, 10:52:36 pm »
I would like to help but I have too many projects with Chernarus Server :|

Offline nathan

  • VG Member
  • *
  • Posts: 33
  • Character: Nathan
  • Referrals: 1
    • View Profile
Re: need help with king of the hill
« Reply #2 on: March 17, 2013, 11:43:00 pm »
aw to bad well maybe someone else ?

Offline TheDictator

  • VG Member
  • *
  • Posts: 22
  • Referrals: 1
    • View Profile
Re: need help with king of the hill
« Reply #3 on: March 18, 2013, 07:05:01 am »
just make it like put a radio active that circle cherno so they wouldnt be able to get out of cherno and put some mines and booby trap and the rules should be the person who will last for 2 mins on the highest building in cherno. no need to thank me lol

Offline nathan

  • VG Member
  • *
  • Posts: 33
  • Character: Nathan
  • Referrals: 1
    • View Profile
Re: need help with king of the hill
« Reply #4 on: March 18, 2013, 03:33:24 pm »
well, its not in cherno its a ZUB (castle ruins) in chernarus so and i got the mines and booby traps i just need someone to tell me how i can make a screen that shows how long someone stood in a certain area in total and when the area is contested it stops counting

Offline Jackson

  • Administrator
  • *
  • Posts: 194
  • Referrals: 4
    • View Profile
Re: need help with king of the hill
« Reply #5 on: March 18, 2013, 04:22:49 pm »
You need to create a public variable.

Once a player from the playerarray list has entered the zone, then set the variable true. If the player leaves the zone, set the variable false.

Get the timer to count your desired time and if after that time the variable = true then stop/restart the mission as someone has captured the area.

To stop the timer if someone else enters, you can do this.

When the player enters, if the variable is already true then stop the timer or send a message saying 'The area is now contested'

Start the timer example:

Every 10 seconds, it will check if the hill has a player in it

    _playerinzone = false 

 if(player distance getmarkerpos "hill" < 50 ) then
            {
            _playerinzone = true;
            hint "The hill is now being captured";
            };
    sleep 10;
};

Capturing the hill example:

Every 10 seconds, it will check if the hill is contested

 if(player distance getmarkerpos "hill" < 50 && _playerinzone = true) then
      {
   hint "The hill is now contested";
      };
    sleep 10;
};

These are just examples, I'm not sure if they work but when I get some free time, I'll try and make my own capture the hill version.

Offline nathan

  • VG Member
  • *
  • Posts: 33
  • Character: Nathan
  • Referrals: 1
    • View Profile
Re: need help with king of the hill
« Reply #6 on: March 18, 2013, 05:50:58 pm »
awesome thanks il try to test it to see if it works

 

+-Recent Topics

How to Join the Tycho Darkwaters Security Services by Luisecm
December 13, 2018, 03:10:53 pm

My top 5 2013 zombie games by BravsolW
December 05, 2018, 09:08:05 pm

<<Apply here to join The Black Guard>> by BravsolW
December 01, 2018, 08:27:30 pm

Invio - [VG] The War Z Role-playing Server by Luisecm
November 28, 2018, 12:05:39 pm

<<Apply to Join Government>> by BravsolW
November 03, 2018, 09:34:07 am

<<Apply to Join Merchant's Guild>> by BravsolW
November 01, 2018, 09:42:09 am

battleye admin ban rdm per deadcert ? by BravsolW
October 30, 2018, 12:05:06 pm

Ban Appeals by BravsolW
October 27, 2018, 07:13:58 pm

Admin Application by BravsolW
October 26, 2018, 10:11:47 pm

GO TO THE NEW WEBSITE by Gricey
May 20, 2016, 09:59:20 pm