Raised This Month: $ Target: $400
 0% 

Pick Up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
risontek22
Member
Join Date: Mar 2013
Location: localhost
Old 08-19-2013 , 04:28   Pick Up
Reply With Quote #1

Hello, i have problem:
PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init() 
{
    
register_touch("weaponbox""player""BlockPickUp");
    
register_touch("armoury_entity""player""BlockPickUp");
    
register_touch("weapon_shield""player""BlockPickUp");

}
public 
BlockPickUp(ent,id)
{
    new 
model[32]; entity_get_string(ent,EV_SZ_model,model,31);
    
    if(
equali(model,"models/w_c4.mdl"))
    {
        return 
PLUGIN_CONTINUE;
    }
    
    if(
get_user_team(id) == 1)
    {
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

I want, that TE cannot pick up any weapon except bomb. But i have tested it and this not works ;( TE cannot pick up bomb
risontek22 is offline
risontek22
Member
Join Date: Mar 2013
Location: localhost
Old 08-19-2013 , 04:36   Re: Pick Up
Reply With Quote #2

SOLVED lock
risontek22 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-19-2013 , 04:37   Re: Pick Up
Reply With Quote #3

You should post your solution, so if others have the same problem they find the solution.
__________________
Kia is offline
Old 08-19-2013, 04:54
Balck
This message has been deleted by Balck.
risontek22
Member
Join Date: Mar 2013
Location: localhost
Old 08-19-2013 , 11:41   Re: Pick Up
Reply With Quote #5

w_c4.mdl
->
w_backpack.mdl
risontek22 is offline
Reply


Thread Tools
Display Modes

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:54.


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