Raised This Month: $ Target: $400
 0% 

[ SOLVED ] Strip especified user weapon?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-06-2015 , 16:27   Re: [HELP] Strip especified user weapon?
Reply With Quote #1

Quote:
Originally Posted by zmd94 View Post
Is this tutorial or problem?
Problem.

Quote:
Originally Posted by Krtola View Post
Try this:

PHP Code:
RegisterHam(Ham_Item_Deploy"weapon_glock""Ham_Deploy"1
PHP Code:
public Ham_Deploy(ent)
{
    static 
idid fm_cs_get_weapon_ent_owner(ent)

    if (!
pev_valid(id))
    return

    
    
fm_strip_user_weapons(id)
            
    
fm_give_item(id"weapon_knife")

Compilation error:
PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < fakemeta_util >

public plugin_init() 
{
    
RegisterHam(Ham_Item_Deploy"weapon_glock""Ham_Deploy"1);
}

public 
Ham_Deploy(ent)
{
    if (
is_user_alive(id))
    {
        static 
idid fm_cs_get_weapon_ent_owner(ent);

        if (!
pev_valid(id));
        return;

        
        
fm_strip_user_weapons(id);
                
        
fm_give_item(id"weapon_knife");
    }

__________________









Last edited by CrazY.; 10-06-2015 at 16:29.
CrazY. is offline
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 22:13.


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