![]() |
Kinda having trouble
Im trying to make a simple kick script.
You know... so only one account can use a specific command and kick someone from the level... I.E. I want it to be like /kick (account) but the problem is i dont know how to make it kick the account i say. |
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. |
you'd substring it.
HTML Code:
function onActionServerside() {':kick xAndrewx', would kick me. |
Quote:
PHP Code:
|
serverwarp isn't serverside !!!! :(
|
Quote:
|
add this like a weapon
PHP Code:
/kick account /dc account Examples: /kick Angel_Light /dc Angel_Light |
What I've always found as the best way to do it is have a weapon that goes like this:
PHP Code:
|
You're all extremely overcomplicating the process save for Andrew. There's no need for these really advanced examples or things to disconnect players. Could you be more specific in what sort of kicking you're in need of?
|
Andrew, your script helped out. Thx ^_^
|
| All times are GMT +2. The time now is 07:29 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.