View Single Post
  #3  
Old 09-26-2011, 04:56 PM
Nogross Nogross is offline
Registered User
Nogross's Avatar
Join Date: Feb 2011
Location: Germany
Posts: 23
Nogross is an unknown quantity at this point
Send a message via ICQ to Nogross
Quote:
Originally Posted by fowlplay4 View Post
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 ..
    
}
  }

Okay thanks I understand now all. Ty for youre help guys !
Reply With Quote