Raised This Month: $ Target: $400
 0% 

Need help on my first mod


Post New Thread Reply   
 
Thread Tools Display Modes
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
skr3wz
Junior Member
Join Date: Jul 2012
Old 07-11-2012 , 22:28   Re: Need help on my first mod
Reply With Quote #2

Aw shoot, how do i delete posts?
skr3wz is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-11-2012 , 23:33   Re: Need help on my first mod
Reply With Quote #3

Quote:
Originally Posted by skr3wz View Post
Aw shoot, how do i delete posts?
You can't delete first post's.
__________________

Last edited by Neeeeeeeeeel.-; 07-11-2012 at 23:33.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-12-2012 , 00:52   Re: Need help on my first mod
Reply With Quote #4

Wrong Seccion , that code is Source.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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:22.


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