Quote:
Originally Posted by Tigairius
PHP Code:
function onActionserverside(action) {
switch (action) {
case "warp":
if (timevar2 > player.local.waittime + 60) {
setlevel2("onlinestartlocal.nw", 30, 30);
player.local.waittime = timevar2;
}else
player.chat = "Not ready yet.";
break;
}
}
//#CLIENTSIDE
function onWeaponFired() {
triggerserver("gui", this.name, "warp");
}
Why don't you try something like this?
|
A very basic version but he also wants a cool down period, which would be easily implemented using you code
