13.02.2014, 11:23
Quote:
For the "SOMETIMES WORKS"
new randomzone = random(4); That generates a random number between 0 and 3, not 1 and 4, whilist you're checking for 1-4. Either do random(4)+1 (that way you'll get 0,1,2,3 + 1 = 1,2,3,4) or change the function variables. https://sampwiki.blast.hk/wiki/Random The general formula is random(n)+min |
I've been working on my Capture Zones for some time now and to no avail. I got all the checkpoints working now though with the correct usage on the random number to activate them. If I set the ZoneTimer (Which activates the zones) to 3 minutes for testing we can go around capturing all the checkpoints. Last night after adding a load of updates to my server about 3am whilst no one was online I put my zone activation timer back to 30 mins and logged out and waited. If a player logs in and a zone is active it is supposed to alert them on spawning. I logged back in about 40-50 minutes later and it alerted me like it should. After waking up today I've logged in and got no message when I spawned. No one is online yet as it is quite early but the zones are definitely breaking after a few hours of either no one being online or no one capturing them. What could be the cause of this? Any ideas?