Jump to content

Skadoosh

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by Skadoosh

  1. Thank you , i fixed my script . Actually this was not the problem but the thing that " killTimer " will actually destroy the timer really helped me find the issue with my script (i thought killTimer pauses the timer) . Thank you once again mate
  2. So this checks if the timer is running and if it is , it's doesn't Enable the event ? I don't want this . I want it to delete the timer and enable the event if a timer is running.Also killTimer won't destroy the timer it only pauses it.
  3. Can you guys please tell me how i can make the existing timer to be deleted when i do the /startdf command twice (you can see it toggles the event ON/OFF) ? i want to delete the on-going timer when i do the /startdf command once the event is started so that when i start it again , it will start from 100. Here is my code Server Side function EnableEvent(thePlayer) times = times + 1 if times == 1 then addCommandHandler("dfrustler",EventWarp) outputChatBox("Dog Fight Event Warps are now open",_,255,255,255,true) outputChatBox("You Opened the Dog Fight Event Warps, You can cancel the event by typing this command again",thePlayer,255,255,255,true) timer = setTimer(triggerClientEvent,1000,100,'startCountDown',root) else times = 0 removeCommandHandler("dfrustler",EventWarp) -- COMMAND TO WARP TO THE EVENT outputChatBox("Dog Fight Event Warps are now Closed",_,255,255,255,true) triggerEvent('eventOFF',root) end addCommandHandler('startdf',root,EnableEvent) Client Side addEvent('startCountDown',true) count = 0 function startCount() if count == 0 then count = 100 end count = count-1 function startTheClock() for k,player in ipairs(playerList) do if getLocalPlayer() == player and count ~= 0 then dxDrawText("EVENT STARTING IN",x-1200,y-1000,_,_,_,1.5,"bankgothic") dxDrawText(tostring(count),x-1000,y-950,_,_,_,1.5,"bankgothic") end end end addEventHandler('onClientRender',root,startTheClock) if count == 0 then -- WHAT HAPPENS WHEN COUNTDOWN REACHES 0 removeEventHandler('onClientRender',root,startTheClock) if #playerList < 2 then -- KILLS EVERYONE AND STOP EVENT IF PARTICIPANTS < 2 triggerServerEvent('eventON',root) else triggerServerEvent('eventOFF',root) end end end addEventHandler('startCountDown',root,startCount) the problem with this is when i do /startdf the event starts and hence the countdown too (from 100 - 0) but when i do the /startdf command again it is supposed to cancel the event and kill everybody inside the event but when i do that the timer will still go on and it bugs the entire script. I tried my best to explain my problem to you guys...
  4. Okay so here is my problem. I am making a script which will make a text appear on the clients screen while he is attacking a rival clan base and i want that text to appear only while that player is shooting. I have tried a lot of ways and nothing seems perfect, like i was able to make the text appear only while he is shooting but it keeps blinking and thats not how i want it to be seen...i am a beginner so please reply to this asap if you have a solution to this.
  5. Oki , i haven't been coding since a month on MTA cuz of my exams and yea we can also execute the function by just calling it.
  6. Its because this is a function and to execute the code inside a function , you have to trigger it using a command (addCommandHandler) or an event (addEventHandler). You can fix your code by just adding addCommandHandler('car',root,createCar)
  7. addCommandHandler('players',root function(thePlayer) outputChatBox("Current number of players: "..tostring(getPlayerCount()),thePlayer) end
  8. We are extremely happy to announce that our forums( saegrpg.com )is back online ! We have added new designs and much more .Register your account now and explore it yourself ?
  9. @Casti SAEG didn't steal the scripts mate , they made all of em by them selves . I have been an Admin there ( i don't play that server anymore though)and i have seen their dev's burning their heads to make their scripts,they have real scripters .But of course I know that most of their scripts look similar and its only cuz almost everyone on SAEG was playing a famous RPG server and all of em were inspired by their scripts and the devs could not think of anything new while building this server and the player loved those scripts too .But now they have changed , they are trying to change all their scripts and Designs to make their server look more unique cuz recently i heard that they were losing a lot of players (server was almost dead) cuz they were going back to that big server that i mentioned before. So, take a look by yourself before criticizing it . In my opinion , even though SAEG isn't the best RPG server out there its better than most of the other RPG servers like S*UG, SA*L etc... .
  10. Improvements updates added and patched almost every abusable glitches . Join now !
  11. We are at 20+ players In game guys ! We are giving away 2M in game money if we manage to hit 30 players so join now !
  12. Guys , while I was going through the posts of other servers and the replies I found out that most of these servers lack a good staff team and dev's.This is why I recommend you guys our community called SAEG . No matter how new you are to MTA , we will help you out with great patience .Our staff team has a total of 10 staffs for having a 24/7 complete moderation on our server so that not even a single report goes un-noticed. You may ask "Why a big staff team while your server has like 15-20 players?" . Well ,our staffs are not (24/7) active like the others and this is cuz we are not recruiting staffs according to their activity or donations.You might see our staffs having like 200hr playtime while a normal player has like 1000 or 800 hrs of playtime. We recruit the staffs according to their ability to help those who are in need cuz we believe that everyone can do the other stuffs like mute,jail,kick etc if they have enough access's . Our staffs are told to always give enough warning to players who has lesser playtime like 20hrs or less. I am very sure that you guys will not have a single complaint against our staff team and if you are looking for a server with good scripts and helpful and friendly staffs, we will be always glad to have you in our community.
  13. We are at 24 players ! Join our forums ( link : saegrpg.com) to be informed of our new giveaways and announcements!.
  14. ATTENTION * If you were an old player of SAEG and had an account, you can get back your account if you haven't forgotten you'r password as we have restored all the old accounts. If you didn't get the Premium VIP that you have already bought please contact an HQ (On Discord/Forum/In Game) and we will try to get it back to you as soon as possible, in case of bases for you'r gang, you should re-create the gang and re-apply for you'r base. Thank you -SAEG Staff Team
  15. Hey guys , today i would like to proudly announce that finally saeg 4.3 version has been released and from now on it will no longer be locked even if there is updates.anyways , you are probably wondering whats new .news list:1- Menu system from now on once you click on any player a menu will be shown that has a couple of options such as revive,trade,give money,pm...etc2-new Trade system , trade system are totally changed it has images and you can trade cars.3-Brand new inventory system it also have images .4-Couple of new mods have been added.5-Revive System has been added finally.6-new way to switch between cross hairs( its much easier than before) .7-Mask system has been added.8-new skin shop system has been added.9-from now on You can now remove your stars all you need to do is enter LSPD and enter the blue marker then you will have to pay (depends on your charges).10- New job guide.11-added clan kill list back and it only counts if your job was thugs.12-You can no longer change founder permissions.13-Hydra can no longer shoot when you enter the tunning shop and leave it.14- Clan members nametag colors has been changed to green.15-Business system is back. 16-Hitman its used to set bounty on someones head for the price u choose and once hes killed the guy who killed him will get the money .17-Respected groups has there own dimensions to train in.18-Explosion timer fixes, you can no longer shoot while the timer is running.19-Spwan protection fixes, you can no longer shoot while you are spawn protected in anyway. 20-new Spwaner DX21-New owned Spwaner DX22-You no longer have to leave the turf colshape and enter to start the turfing process.23-You can use /sur and the nearest cop will get the arrest if there was cops nearby 24-Only the VIP can see his own laser25-Trader has been removed and all explosives stuff have been added to ammunition .26-You can no longer get killed in AFK zone.27-FFA system improves.regards, HQ team.
  16. As an inspired roleplayer I come here with an RPG Server , SAEG has been created by a few guys on purpose to give players what they need. Actually we offer you a great adventure which you won’t see anywhere else. We have variety of jobs, different type of groups such as (Clan,Squad,Gang). Don’t make your dreams leak out of your mind and make the come true ! Everything began at 30.3.2017, after being slaves of server full of unfair admins, unfair players which are looking forward to scam you three guys got sad that they are part of such community, one of them gave the idea to create their own server, they thought about it and here we are, the server exists.They didn't know if the server will go well or they will spend their money for nothing but they took the right choice and now they have an awesome server with great players which i am sure you will enjoy to play with! - SAEG:RPG IP Adress: mtasa://46.105.250.205:26014- SAEG:RPG Forum Link: saegrpg.com- Record: 87 players-Daily players: 30+ http:// Contact Information Facebook Page :https://www.facebook.com/groups/228410374276549/ Discord server : https://discord.gg/pfs9PFu Join us now ! We'll be glad to have you ! PLEASE NOTE As our server is on its beta* stage you guys might find some bugs and these bugs but you guys don't have to be worried as these bugs are getting fixed one-by-one by our dev's.So please be patient and support us by reporting the bugs on our forums(saegrpg.com). Join us now ! We'll be glad to have you !
  17. isn't your server called Balkan Roam a clone of grafuroam?
×
×
  • Create New...