
10-28-2007, 10:35 PM
|
|
o.o
|
 |
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
|
|
Quote:
Originally Posted by Googi
If you just want to move them to another level, just use findPlayer(account).setlevel2(levelname.nw,x,y);
If you want to kick them off the server, the process is a bit more convoluted. You have to use triggerclient instead of setlevel2 to trigger a weapon the player has to use the serverwarp command to send them to Login1.
|
Easier:
PHP Code:
function onActionServerSide() {
with(findplayer(params[0)) {
serverwarp("Login");
}
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/disconnect")) {
triggerserver("gui",this.name,player.chat.substring(12).trim());
}
}
|
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
|
|
|
|