
06-07-2012, 10:28 PM
|
|
ジ
|
 |
Join Date: Nov 2010
Location: Germany
Posts: 1,015
|
|
Quote:
Originally Posted by Fysez
I don't know how to 'Script' Gani's. However,
I don't know why i didn't think of it, But I ended up working with triggers
to make the zoom work.
So here it is for anyone who wants to use it=P
PHP Code:
findplayer("Graal781471").addweapon(this.name);
function onActionServerSide() {
if (params[0] == "zoom") {
setzoomeffect this.zoom;
} else if (params[0] == "overzoom") {
player.chat = "Zoom effect is too big! Big zoom = HUGE lag!";
}
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/zoom ")) {
if (player.chat.substring(6)=<9) {
player.zoom = player.chat.substring(7).trim();
triggerserver("gui",this.name,"zoom",0,player.account,0.5);
} else if (player.chat.substring(6)=>9) {
triggerserver("gui",this.name,"overzoom",0,player.account,0.5);
}
}
}
|
Did you even check your RC after saying "/zoom #"?
Also I'd call it an 'overcomplicated clientside stealth script' |
|
|
|