View Single Post
  #15  
Old 07-02-2011, 05:18 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by xuntasi View Post
This is a script I made for my server so I could randomly make people say stuff if they annoyed me. Just for a bit of fun. It doesn't work, however, and I have no clue as to what is wrong with it. From everything I've learned it seems that it should work. Please help me if you have time, it would be greatly appreciated!

PHP Code:
function onWeaponFired() {
  
temp.acc.chat temp.message;
  }
function 
onPlayerChats() {
  if(
player.chat.starts=="/message " && temp.acc.account!="Graal780973") {
    
temp.message player.chat.substring("/message ".length());
    }
  if(
player.chat.starts=="/account " && temp.acc.account!="Graal780973") {
    
temp.acc findplayer(player.chat.substring("/account ".length());)
    } 
You're starting on your way to becoming a script beggar and that's not good.

Read the snippets I have linked here on Client<->Server interaction if you actually are interested in learning:

http://public.zodiacdev.com/index.ph...er_Interaction
__________________
Quote:
Reply With Quote