Raised This Month: $ Target: $400
 0% 

how to check bot weapon?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-19-2012 , 04:37   how to check bot weapon?
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Title"
#define VERSION "1.0"
#define AUTHOR "DavidJr"

#define TE_PLAYERATTACHMENT         124      // Attaches a TENT to a player (this is a high-priority tent)

#define ASSAULT_WEAPONS (1 << CSW_GALIL | 1 << CSW_FAMAS | 1 << CSW_AK47 | 1 << CSW_SG552 << CSW_AUG)
#define SMG_WEAPONS (1 << CSW_MAC10 | 1 << CSW_TMP | 1 << CSW_MP5NAVY | 1 << CSW_UMP45 | 1 << CSW_P90)
#define SNIPER_WEAPONS (1 << CSW_AWP | 1 << CSW_SCOUT | 1 << CSW_G3SG1 | 1 << CSW_SG550)
#define SHOTGUN_WEAPONS (1 << CSW_M3 | 1 << CSW_XM1014)
#define HANDGUN_WEAPONS (1 << CSW_GLOCK18 | 1 << CSW_USP | 1 << CSW_P228 | 1 << CSW_DEAGLE << CSW_ELITE | 1 << CSW_FIVESEVEN)
#define MACHINEGUN (1 | << CSW_M249)
#define EXPLOSIVE_ITEM (1 << CSW_C4 | 1 << CSW_HEGRENADE | 1 << CSW_SMOKEGRENADE | 1 << CSW_FLASHBANG)

new hudsprite

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("title_on","title")
}
public 
plugin_precache()

    
hudsprite=precache_model("sprites/title/assault.spr")
    
hudsprite=precache_model("sprites/title/smg.spr")
    
hudsprite=precache_model("sprites/title/sniper.spr")
    
hudsprite=precache_model("sprites/title/shotgun.spr")
    
hudsprite=precache_model("sprites/title/handgun.spr")
    
hudsprite=precache_model("sprites/title/machinegun.spr")
    
hudsprite=precache_model("sprites/title/explosive.spr")
    return 
PLUGIN_CONTINUE
}
public 
title(id){
    new 
wpnidwpnclipwpnammo 
    wpnid 
get_user_weapon(idwpnclip wpnammo)
    
    
message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},id)
    
write_short(TE_PLAYERATTACHMENT)
    
write_entity(id)
    
write_coord(32)
    
write_short(hudsprite)
    
write_short(100)
    
message_end()

How to check bot weapons? and show a sprites above their head about what's their weapon use.
Randomize 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:28.


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