AlliedModders

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

enjoi. 09-23-2011 16:58

Awp Action
 
I'm editing Necros Block maker and I need the action for awp. Can somebody tell me

Stereo 09-23-2011 18:11

Re: Awp Action
 
Tell more about what you want


This?

PHP Code:

RegisterHam(Ham_Weapon_PrimaryAttack"weapon_awp""fw_PrimaryAttack"


enjoi. 09-23-2011 18:54

Re: Awp Action
 
Found it!

PHP Code:

actionAwp(id)
{
    if (
is_user_alive(id) && !AwpUsed[id] && get_user_team(id) == 1)
        {
        
give_item(id"weapon_awp");
        
cs_set_weapon_ammo(find_ent_by_owner(1"weapon_awp"id), 1);
        
AwpUsed[id] = true;
        new 
awpname[42];
        
get_user_name(idawpname32);
        
set_hudmessage(255255255, -1.0, -1.006.04.0);
        
show_hudmessage(0"Be careful CT! %s has a awp!"awpname);
    }



Erox902 09-24-2011 20:48

Re: Awp Action
 
Seriosly search:?
Did you even try that?

And btw post in request if you just want a code.


All times are GMT -4. The time now is 19:44.

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