Raised This Month: $12 Target: $400
 3% 

[R] Rewrite AMX plugin to Sourcemod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lordoflort
Member
Join Date: Dec 2010
Old 05-07-2016 , 18:19   [R] Rewrite AMX plugin to Sourcemod
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
Edit:

Just try this:
Code:
#include <amxmodx> #include <hamsandwich> #include <fakemeta> const m_flTimeWeaponIdle = 48 const XoCGrenade = 4 public plugin_init() {     new const CallBack[] = "CGrenade_PrimaryAttack"     RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_smokegrenade", CallBack, true)     RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_flashbang"   , CallBack, true)     RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_hegrenade"   , CallBack, true) } public CGrenade_PrimaryAttack(GrenadeEntity) {     if(pev_valid(GrenadeEntity))     {         set_pdata_float(GrenadeEntity, m_flTimeWeaponIdle, 0.0, XoCGrenade)     } }
Can anyone rewrite this for sourcemod please? It would be much appreciated!
EDIT:
Worth mentioning, this plugin is supposed to make grenades throw instantly.
__________________

Last edited by lordoflort; 05-07-2016 at 18:20.
lordoflort is offline
Reply


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 09:02.


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