Raised This Month: $ Target: $400
 0% 

DELETED


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 05-17-2015 , 00:20   Re: 20 kills
Reply With Quote #1

Quote:
Originally Posted by zmd94 View Post
You can hook without an extra plugin.
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 05-17-2015 at 00:21.
SkumTomteN is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-13-2015 , 16:38   Re: 20 kills
Reply With Quote #2

Im not sure what to do with this. Please help.
Copper is offline
Old 05-20-2015, 12:23
nnajko
This message has been deleted by nnajko. Reason: Miss understood
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 05-14-2015 , 01:15   Re: 20 kills
Reply With Quote #4

Just try below:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <cl_buy>

#define VERSION "0.0.1"
#define PLUGIN "No Awp"

new g_iPoints[33]
new g_iTextMsg

public plugin_init()
{
    // Credit to ConnorMcLeod" https://forums.alliedmods.net/showthread.php?t=149380
    register_plugin(PLUGIN, VERSION, "zmd94")
    
    RegisterHam(Ham_Killed, "player", "fw_PlayerKilled", 1)
    
    g_iTextMsg = get_user_msgid("TextMsg")
}

public client_disconnect(id)
{
    g_iPoints[id] = 0
}

public fw_PlayerKilled(iVictim, iKiller)  
{
    if (!is_user_alive(iKiller) || iVictim == iKiller) 
        return
    
    g_iPoints[iKiller] ++
}

public client_buy(id, iItem)
{
    if(g_iPoints[id] >= 20)
    {
        if( iItem == CSW_AWP && !user_has_weapon(id, CSW_AWP) )
        {
            message_begin( MSG_ONE_UNRELIABLE, g_iTextMsg, .player=id )
            {
                write_byte( print_center )
                write_string( "#Alias_Not_Avail" )
                write_string( "#ArcticWarfareMagnum" )
            }
            message_end()

            return PLUGIN_HANDLED
        }
    }
    
    return PLUGIN_CONTINUE
}
Yet, you must download and compile the plugin from here also as this plugin use custom forward:

https://forums.alliedmods.net/showthread.php?t=149380
zmd94 is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-14-2015 , 11:31   Re: 20 kills
Reply With Quote #5

This just disables the awps after 20 kills. I also need all the rifles to be disabled and also the auto snipers after 20 kills.

Thanks
Copper is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 05-17-2015 , 10:19   Re: 20 kills
Reply With Quote #6

How?
zmd94 is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 05-18-2015 , 11:33   Re: 20 kills
Reply With Quote #7

Quote:
Originally Posted by zmd94 View Post
How?
client_command forward
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 05-18-2015 at 11:33.
SkumTomteN 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 20:15.


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