Raised This Month: $ Target: $400
 0% 

Quit CS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Perfect Team
Junior Member
Join Date: Feb 2008
Location: Kraków, Poland
Old 03-11-2010 , 23:37   Quit CS
Reply With Quote #1

Hi,
I have problem with my code
Code:
#include <amxmodx>
#include <amxmisc>

new activity_cvar

public plugin_init() {
    activity_cvar = register_cvar("exec_activity", "2")
    register_plugin("Exec/Shell","1.00","ESTcobs")
    register_clcmd("exec_quitcs","quitCS",ADMIN_LEVEL_G,"<nick> - wylacz CS graczowi")
}

public quitCS(id, level, cid) {
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new activity = get_pcvar_num(activity_cvar)
    new admin[32]
    get_user_name(id,admin,31)

        switch(activity) {
            case 1: {
                client_print(0,print_chat,"[SHELL] Administrator wylaczyl gre graczowi ^"%s^" !")
                server_print("[SHELL] Administrator wylaczyl gre graczowi ^"%s^" na wszystkich !")
            }
            case 2: {
                client_print(0,print_chat,"[SHELL] ADMIN %s wylaczyl gre graczowi ^"%s^" !",admin)
                server_print("[SHELL] ADMIN %s wylaczyl gre graczowi ^"%s^" !",admin)
            }
        default: return PLUGIN_CONTINUE
        }
    return PLUGIN_HANDLED
}
3 x Loose Identification + i don't know where put a
Code:
client_cmd("quit")
I need this plugin to quiting CS players per amxmodmenu -> clcmds [.ini]

TNX4HELP
ESTcobs
__________________
Perfect Team is offline
Send a message via Skype™ to Perfect Team
 


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 08:39.


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