Raised This Month: $ Target: $400
 0% 

Command Unknowned. Where did i go wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
z3rongod
Member
Join Date: Jul 2009
Old 02-01-2010 , 12:37   Command Unknowned. Where did i go wrong?
Reply With Quote #1

As the topic says what's wrong with the script i wrote?

Code:
#include <amxmodx>
#include <amxmisc>

public cmdExtreme(id, level, cid) {
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
        
    new arg[32]
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg)
    client_cmd(player,"Connect ex.usn.ro")
    return PLUGIN_HANDLED
}

public plugin_init() {
    register_plugin("Transfer to Extreme","1.0","z3rongod")
    register_clcmd("amx_extreme", "cmdExtreme", ADMIN_KICK, "<name>")
    return PLUGIN_CONTINUE
}
It's supposed to transfer a player to our other server.

EDIT: this is the latest version. Problem is the command is executed on everyone.

Last edited by Emp`; 02-01-2010 at 13:48. Reason: added code tags
z3rongod is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode