View Single Post
  #3  
Old 10-28-2007, 09:48 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
you'd substring it.

HTML Code:
function onActionServerside() {
  if (params[0] == "kick") {
    findPlayer(player.chat.substring(5).trim()).setlevel2("level.nw", x, y);
  }
}
//#CLIENTSIDE
function onPlayerChats() {
  if (player.chat.starts(":kick")) {
    triggerserver("weapon", this.name, "kick");
  }
}
So, first we check if the player is saying ':kick', if yes it will look for the player that is stated after the ':kick' command. Here's an example:
':kick xAndrewx', would kick me.
__________________

Last edited by xAndrewx; 10-28-2007 at 11:19 PM..
Reply With Quote