Raised This Month: $ Target: $400
 0% 

Origin of an entity?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Des12
Senior Member
Join Date: Jan 2005
Old 03-02-2006 , 22:03  
Reply With Quote #10

I would suggest making an global variable such as

Code:
new g_c4count[33]; new g_c4store[33][5]; // . . . public item_c4det() {     new arg[32]     read_argv(1,arg,31)     new id = str_to_num(arg)     if(!id) {         client_print(id,print_chat,"[ItemMod] ID1: %i",id)         return PLUGIN_HANDLED     }         client_print(id,print_chat,"[ItemMod] ID2: %i",id)        for( new i = 0; i < g_c4count[id]; i++) {                 new entid = g_c4store[id][i];         //new entid2 = find_ent_by_owner(id,"item_c4",id)             client_print(id,print_chat,"[ItemMod] EntId: %i",entid)         //client_print(id,print_chat,"[ItemMod] EntId2: %i",entid2)                   while(entid != 0) {             new origin[3], Float:originF[3];               entity_get_vector(entid,EV_VEC_origin,originF);               FVecIVec(originF,origin);                     basic_explosion_c4(origin)             client_print(id,print_chat,"[ItemMod] C4 Successfully Exploded!")             remove_entity(entid)             c4limit[id] -= 1             radius_damage(originF,300,200)         }     }     return PLUGIN_HANDLED }
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 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 20:17.


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