AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help on my first mod (https://forums.alliedmods.net/showthread.php?t=189865)

skr3wz 07-11-2012 22:27

Need help on my first mod
 
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 07-11-2012 22:28

Re: Need help on my first mod
 
Aw shoot, how do i delete posts?

Neeeeeeeeeel.- 07-11-2012 23:33

Re: Need help on my first mod
 
Quote:

Originally Posted by skr3wz (Post 1748443)
Aw shoot, how do i delete posts?

You can't delete first post's.

lucas_7_94 07-12-2012 00:52

Re: Need help on my first mod
 
Wrong Seccion , that code is Source.


All times are GMT -4. The time now is 15:22.

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