![]() |
A Small Staff Tool
1 Attachment(s)
It will allow you to refill arrows, bombs, health and money.
It will also allow you to nuke a level. NOTE: if your on a gmap it will nuke all surrounding levels that are one level from the level you are on. @cbk1994 thanks for the correction PHP Code:
|
Actually, if you're just using players (not TServerLevel.players), on a GMAP it will only nuke the surrounding levels (one level on each side of the player's current level iirc).
Instead of doing PHP Code:
PHP Code:
Your player.chat = "Nuked Everyone!"; should be outside of the for loop, there's no reason to have it inside. You won't notice a difference, but what you're doing when it's in the for loop is setting the current player's (not the nuked player's) chat multiple times. Instead of that ridiculous timeout to move the objects, just do the same thing in a GraalControl.onResize event. Besides that the script looks fine. I'd recommend using if-else statements instead of a bunch of if statements which are mutually exclusive as it makes your purpose clearer to the reader. |
You could also use a switch statement instead of multiple ifs as well.
In Give_Button.onAction() you could also just do: triggerserver("weapon", this.name, temp.item); Since your parameters on the server-side match up with the ones on the client-side. |
@fowlplay thanks i didnt even think of that. il do when i get home.
|
All times are GMT +2. The time now is 07:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.