AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Turn On/Off Knife (https://forums.alliedmods.net/showthread.php?t=89948)

Hibiki_XD 04-12-2009 11:08

[HELP] Turn On/Off Knife
 
:P Hi all i need help with this.. example if i dont have knife..., how i can give it and turn it off? example:

[I GOT THE KNIFE]
1 secs
2 secs
3 secs
4 secs
5 secs
6 secs
7 secs
8 secs
9 secs
10 secs
[Remove Knife]

How i can do it?

SnoW 04-12-2009 12:41

Re: [HELP] Turn On/Off Knife
 
PHP Code:

/*
    Something like this?
*/
#include <fakemeta_util>
function( id... )
{
    
fm_give_itemid"weapon_knife" );
    
set_task10.0"remove_knife"id );
}
remove_knifeid )
{
    
fm_strip_user_gunid"weapon_knife" );



Hibiki_XD 04-12-2009 16:20

Re: [HELP] Turn On/Off Knife
 
thanks ~

TitANious 04-12-2009 16:40

Re: [HELP] Turn On/Off Knife
 
You cant give it like that? I think you means exampel

A admin wants to give a person a weapon for 10 secunds, with a say command or console command?


All times are GMT -4. The time now is 02:19.

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