Thread: Zoom Script?
View Single Post
  #3  
Old 06-07-2012, 09:29 PM
Fysez Fysez is offline
Banned
Join Date: Apr 2012
Posts: 89
Fysez has a little shameless behaviour in the past
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);
}
}

Reply With Quote