Raised This Month: $ Target: $400
 0% 

Pick Up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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