Raised This Month: $ Target: $400
 0% 

Need help on my first mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
skr3wz
Junior Member
Join Date: Jul 2012
Old 07-11-2012 , 22:27   Need help on my first mod
Reply With Quote #1

Hello everyone,

I'm very new to sourcemod and to the community so go easy on me ^-^. I was working on my first mod (one that would regenerate health and ammo upon use of "!sm_refill") but it seems like it doesn't want to work.

Code:
public Action:refill(client, args)
{
	FakeClientCommand(client, "impulse 101");
	PrintToChat(client, "Your health and ammo were refilled");
	return Plugin_Handled;
}
That is the code i'm using at the moment, I was wondering if it was a problem with using impulse 101? (It prints "Your health and ammo were refilled" but nothing happens)

Thanks,
Skr3wz
skr3wz 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 15:22.


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