Raised This Month: $ Target: $400
 0% 

Quit CS


Post New Thread Reply   
 
Thread Tools Display Modes
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
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-12-2010 , 00:05   Re: Quit CS
Reply With Quote #2

client_cmd( id, "quit" )

Use the Indent Tool for loose indentation errors. Most text editors have them.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Perfect Team
Junior Member
Join Date: Feb 2008
Location: Kraków, Poland
Old 03-12-2010 , 00:12   Re: Quit CS
Reply With Quote #3

*crap*
thank you :=)
__________________

Last edited by Perfect Team; 03-12-2010 at 00:20. Reason: nvm
Perfect Team is offline
Send a message via Skype™ to Perfect Team
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-12-2010 , 00:20   Re: Quit CS
Reply With Quote #4

That warning means you have an inconsistency in spaces/tabs or you have blatently incorrect indentation/tabbing. Go to the line and fix it yourself, it's not difficult.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply



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