![]() |
Need Help with a "Homestone" Script
Hey NAT Community,
I'd need help with my script which is basicly porting you to the onlinestartlocal after 10secs and playing a gani in this time. After you used it, you'd have a Cooldown for 6minutes. Quite simply you may think but i tried and tried and asked some people but they coulnd't help me, maybe you can?! :) Oh yea and please keep those "My Ass whats that for a dumb script" for yourself please ;) Here is what i did so far: //This will be the Homestone porting you to the Onlinestartlocal function onActionServerside(action){ if (action == "warp"){ setlevel2("onlinestartlocal.graal",30,30); player.chat="passed!"; } } //#CLIENTSIDE function onCreated() { client.cooldown = false; } function onWeaponfired() { if (client.pause<=0&&client.cooldown=false) { setani Homestone,NULL; player.freezetime = 10.0; client.cooldown = true; setTimer(0.10); } else { player.chat="Your Homestone is not Ready yet! You need to wait atleast " @client.pause@ " seconds!"; } } function onTimeout() { triggeraction(0,0,serverside,warp,warpout,null); player.chat="Warped!"; for (client.pause=>0; client.pause <=600; client.pause-1;){ sleep 1.0; } if (client.pause=0) { client.cooldown = false; } } Regards, Zab |
You're using a mix of GS1 and GS2 which is very bad.
Also, try using triggerserver("gui", name, "warpout"); Also, you should be doing for (client.pause = 0; client.pause <= 600; client.pause -= 1) |
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Well, they could mash the D button and trigger the server a ton. Might be better to do the checking clientside. Pretty easy to change anyways.
|
Quote:
|
I think clientside checking would be the best bet here, to be quite honest. I would always try and avoid making triggers to serverside as much as possible unless needed.
|
Check first on clientside, then later on serverside (to be sure they aren't, for some reason, changing the data).
|
Quote:
|
I noticed Tig used...
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
All times are GMT +2. The time now is 09:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.