AlliedModders

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

BodyBuilder 08-02-2011 08:39

lol
 
lol

fysiks 08-02-2011 08:41

Re: [HAMSANDWICH] Failed
 
:arrow: "player"

Also you should do something like this:

PHP Code:

#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
RegisterHam(Ham_Spawn,"player","HamPlayerSpawn"1)
}

public 
HamPlayerSpawn(id)
{
    if( 
is_user_alive(id) )
    {
        
give_item(id,"weapon_crowbar")
        
give_item(id,"weapon_handgrenade")
        
give_item(id,"weapon_snark")
        
give_item(id,"weapon_snark")
        
give_item(id,"weapon_snark")
        
give_item(id,"weapon_tripmine")
        
give_item(id,"weapon_tripmine")
        
give_item(id,"weapon_tripmine")
        
give_item(id,"weapon_tripmine")
        
give_item(id,"weapon_tripmine")
        
give_item(id,"weapon_satchel")
        
give_item(id,"weapon_satchel")
        
give_item(id,"weapon_satchel")
        
give_item(id,"weapon_satchel")
        
give_item(id,"weapon_satchel")
        
give_item(id,"item_security")
        
give_item(id,"item_antidote")
    }



hornet 08-02-2011 08:45

Re: [HAMSANDWICH] Failed
 
EDIT: Same solution as fysiks.

Flipper_SPb 08-02-2011 09:44

Re: [HAMSANDWICH] Failed
 
For HL it will not work without set_task

fysiks 08-02-2011 10:13

Re: [HAMSANDWICH] Failed
 
Quote:

Originally Posted by Flipper_SPb (Post 1524145)
For HL it will not work without set_task

Why not? Even if you hook it as post? I could imagine that a set_task() would be a "work around" if you were hooking it as pre.

Flipper_SPb 08-02-2011 16:00

Re: [HAMSANDWICH] Failed
 
Quote:

Originally Posted by fysiks (Post 1524156)
Even if you hook it as post?

Yes. I used another way to give the same equipment for every player at spawn.
I create game_player_equip entity


All times are GMT -4. The time now is 03:32.

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