Raised This Month: $ Target: $400
 0% 

[FM] get_tr2 TR_pHit loves the fun module


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VEN
Veteran Member
Join Date: Jan 2005
Old 08-04-2006 , 13:05   [FM] get_tr2 TR_pHit loves the fun module
#1

Disable the fun module and run the script below.
The server will crash with "bad entity in index of edict".
But it will not crash if fun module is enabled.

Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("tr_phit_bug_part2", "0.1", "VEN")     register_forward(FM_TraceLine, "forward_trace_line") } public forward_trace_line(Float:start[3], Float:dest[3], ignore_monsters, skip_ent, ptr) {     if (!is_user_alive(skip_ent))         return FMRES_IGNORED     new phit = get_tr2(ptr, TR_pHit)     if (!is_user_alive(phit))         return FMRES_IGNORED     return FMRES_IGNORED }
VEN 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 22:50.


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