AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Pick Up (https://forums.alliedmods.net/showthread.php?t=223992)

risontek22 08-19-2013 04:28

Pick Up
 
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 08-19-2013 04:36

Re: Pick Up
 
SOLVED :D lock

Kia 08-19-2013 04:37

Re: Pick Up
 
You should post your solution, so if others have the same problem they find the solution.

risontek22 08-19-2013 11:41

Re: Pick Up
 
w_c4.mdl
->
w_backpack.mdl


All times are GMT -4. The time now is 15:54.

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