View Single Post
  #10  
Old 09-26-2011, 01:27 AM
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 Nogross View Post
Thank you fowl, I learned much in youre code. Ty again. I understand all except the part with actionkickplayer wouldnt it be easier to add just a if (...) at func playerchats?
I guess you're referring to the Events Team guild check.

It should be on both (server and client) sides.

PHP Code:
// .. other code ..
function onActionKickPlayer() { 
  
// Make sure the 'kicker' is on the Events Team 
  
if (player.guild == "Events Team") {
    
// May help you understand what's happening better.
    
echo(player.account SPC "kicking" SPC params[0]);
    
// Kick
  
}
}

//#CLIENTSIDE

function onPlayerChats() {
  if (
player.guild == "Events Team") {
    if (
player.chat == "/kick") {
      
// .. other code ..
    
}
  }

__________________
Quote:
Reply With Quote