Raised This Month: $ Target: $400
 0% 

Cvar for UberSlap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dekken
Veteran Member
Join Date: Jul 2007
Old 03-02-2008 , 00:14   Cvar for UberSlap
Reply With Quote #1

i remember there was a Cvar for Uberslap...
how much damage does it make...
i hate the thing that it makes 1Damage...i dont wanna kill them :O
Just well...Have fun with them lol

Do i need to change anything here?:

PHP Code:
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//AMX UBER SLAP v0.9.3 by BarMan (Skullz.NET)
//==========================================================================================================
public admin_slap(id,level,cid){

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

    
new name[32], name2[32], authid[36], authid2[36]
    new 
arg[32]
    
read_argv(1,arg,31)

    new 
player cmd_target(id,arg,7)
    if (!
player)
    return 
PLUGIN_HANDLED

    
new ids[2]
    
ids[0] = player

    get_user_name
(player,name,32)
    
get_user_authid(player,authid,35)

    
udisarm_player(id,player)
    
set_task(0.1"slap_player"0ids1"a"100)

    
get_user_name(id,name2,31)
    
get_user_authid(id,authid2,35)

    switch(
get_pcvar_num(amx_show_activity))
    {
    case 
2:    client_print(0,print_chat,"%L"LANG_PLAYER"AMX_SUPER_UBERSLAP_PLAYER_CASE2",name2,name)
    case 
1:    client_print(0,print_chat,"%L"LANG_PLAYER"AMX_SUPER_UBERSLAP_PLAYER_CASE1",name)

    }

    
console_print(id,"%L"LANG_PLAYER"AMX_SUPER_UBERSLAP_PLAYER_MSG",name)
    
log_amx("%L"LANG_SERVER"AMX_SUPER_UBERSLAP_PLAYER_LOG",name2,authid2,name,authid)

    return 
PLUGIN_HANDLED
}

public 
udisarm_player(id,victim){

    new 
name[32], origin[3]

    
get_user_origin(victim,origin)
    
origin[2] -= 2000
    fm_set_user_origin
(victim,origin)

    new 
iweapons[32], wpname[32], inum
    get_user_weapons
(victim,iweapons,inum)

    for(new 
a=0;a<inum;++a){

        
get_weaponname(iweapons[a],wpname,31)
        
engclient_cmd(victim,"drop",wpname)
    }

    
engclient_cmd(victim,"weapon_knife")
    
origin[2] += 2005
    fm_set_user_origin
(victim,origin)
    
get_user_name(victim,name,31)

    return 
PLUGIN_CONTINUE
}

public 
slap_player(ids[]) {

    new 
id ids[0]
    new 
upower 1,nopower0

    
if (get_user_health(id) > 1)
    {
        
user_slap(id,upower)

    } else {

        
user_slap(id,nopower)
    }

    return 
PLUGIN_CONTINUE


Ripped it off the SMA..
dekken is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-02-2008 , 00:18   Re: Cvar for UberSlap
Reply With Quote #2

change the upower to set the slap damage
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply


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 19:40.


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