Raised This Month: $ Target: $400
 0% 

Need code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-25-2011 , 02:32   Need code
Reply With Quote #1

I need cvars. When cvar = ban plugin ban player for something but when cvar is kick plugin kick player.....

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    new 
Commands [][] = { "say fuck you""say blowing" }

    for(new 
ii<sizeof(Commands); i++)
    {
        
register_clcmd(Commands[i], "fuckurmama"ADMIN_KICK"!!!")
    }
}

public 
fuckurmama(id)
{
        new 
Fucker[3]
        
get_user_name(idFuckercharsmax(Fucker))
        
server_cmd("kick #%d ^"Try to fuck someone else.^""Fucker)

__________________
Artifact is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-25-2011 , 11:24   Re: Need code
Reply With Quote #2

Code:
new pCvarBan; public plugin_init() {     pCvarBan = register_cvar("fuckyou_ban", "1"); } function(id) {     if(get_pcvar_num(pCvarBan))     {         // ban     }     else     {         // kick     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 23:24.


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