Quote:
Originally Posted by Nogross
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 ..
}
}
}