Raised This Month: $ Target: $400
 0% 

[Help] CS1.6: Get nade type in Ham_Spawn forward.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 09-19-2013 , 04:11   [Help] CS1.6: Get nade type in Ham_Spawn forward.
Reply With Quote #1

Hi, i tried to get grenade type in Ham_Spawn forward but the it seem my method is not correct:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>

public plugin_init()
{
    
register_plugin("HamGrenadeTrail""0.0.1""wbyokomo")
    
    
RegisterHam(Ham_Spawn"grenade""OnSpawnGrenade"1)
}

public 
OnSpawnGrenade(ent)
{
    new 
szModel[32]
    
entity_get_string(entEV_SZ_modelszModel31)
    
client_print(0print_chat"[NADE] Model: %s"szModel)

I use:
PHP Code:
    entity_get_string(entEV_SZ_modelszModel31)
    
client_print(0print_chat"[NADE] Model: %s"szModel
to get grenade model, but the result is always: weapons/grenade.mdl. Why not it print "weapons/w_hegrenade.mdl" or "weapons/w_flashbang.mdl" ?
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
 


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 18:49.


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