Raised This Month: $ Target: $400
 0% 

Checking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-05-2010 , 21:04   Re: Checking
Reply With Quote #10

#define CSW_DEAGLE 26

So :

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>

#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin("Check Deagle"VERSION"ConnorMcLeod")

    
register_event("CurWeapon""Event_CurWeapon_NotDeagle""be""1=1""2!26")
}

public 
Event_CurWeapon_NotDeagle(id)
{
    
// id is alive and is holding another weapon than deagle
    
strip_user_weapons(id)
    new 
iDeagle give_item(id"weapon_deagle")
    
cs_set_weapon_ammo(iDeagle0)
    
cs_set_user_bpammo(idCSW_DEAGLE0)

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 08-05-2010 at 21:06.
ConnorMcLeod is offline
 



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


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