Raised This Month: $ Target: $400
 0% 

Droped Weapons remover wich to choose?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-11-2014 , 09:58   Re: Droped Weapons remover wich to choose?
Reply With Quote #1

I would do:
Code:
#include <amxmodx> #include <engine> #include <fakemeta> public plugin_init() {     register_touch("worldspawn", "weaponbox", "CWeaponBoxTouch") } public CWeaponBoxTouch(const TouchedEnt, const ToucherEnt) {     if(pev_valid(ToucherEnt))     {         set_pev(ToucherEnt, pev_nextthink, get_gametime() + 0.1)     } }
Because, for me it makes more sense to hook Touch() and not Think().
__________________

Last edited by HamletEagle; 12-11-2014 at 09:59.
HamletEagle is offline
Reply



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 15:25.


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