Raised This Month: $ Target: $400
 0% 

need MP5 added to plugin on start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 11-02-2009 , 02:06   Re: no knife
Reply With Quote #2

Quote:
Originally Posted by drumzplaya13 View Post
is there a way i can use one of these strings to create a plugin which doesnt allow a player to have a knife? I am new with coding period so this would get me a good start to it i guess. thanks.

ham_strip_weapon or fm_strip_user_gun are the commands i found, not sure which one would be more suited or which one is more out of date.

and I actually am looking for the plugin which doesnt have a knife, not just replacing the models. I dont want anyone to be able to access or start out with a knife at all.
PHP Code:

RegisterHam
(Ham_SpawnplayerPlayerSpawn)

public 
PlayerSpawn(id)
{
       if(
is_user_alive(id) && is_user_connected(id)
       {
             
ham_strip_weapon(id"weapon_knife")
        }

Doc-Holiday 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 17:42.


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