Raised This Month: $ Target: $400
 0% 

Following RPG_ROCKET


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-21-2005 , 16:10  
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta> new sprite; public plugin_init() {     register_plugin("Drevil Ammo","0.1","DahVid")     register_forward(FM_SetModel,"ChangeAmmo",0) } public plugin_precache() {     precache_model("models/zombie.mdl")     sprite = precache_model("sprites/laserbeam.spr"); } public ChangeAmmo(entity,model[]) {     if(equali(model,"models/rpgrocket.mdl")==1) {         entity_set_model(entity,"models/zombie.mdl")         set_trail(entity);         return FMRES_SUPERCEDE     }     return FMRES_IGNORED } public set_trail(ent) {    if(!is_valid_ent(ent)) { return; }    message_begin(MSG_ALL,SVC_TEMPENTITY);    write_byte(22); // TE_BEAMFOLLOW    write_short(ent); // rocket    write_short(sprite); // laserbeam    write_byte(50); // life    write_byte(20); // width    write_byte(255); // R    write_byte(100); // G    write_byte(100); // B    write_byte(100); // brightness    message_end();    return; }

See if it works.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 14:25.


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