AlliedModders

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

fantastiko 08-17-2013 17:51

fantastiko
 
fantastiko

Black Rose 08-17-2013 20:21

Re: not work
 
killer = read_data(1)
-->
new killer = read_data(1)
?

I'm not sure about the pdata parameters, just try it out and we'll see.

~Ice*shOt 08-18-2013 08:28

Re: not work
 
it is in gungame

Balck 08-18-2013 08:35

Re: not work
 
Quote:

Originally Posted by fantastiko (Post 2015714)
i want when killer killed victim , him weapon clip renew, no reload.


PHP Code:

#include amxmodx
#include hamsandwich
#include fakemeta_util
#include fun

const Clip 40
const HL1_OffSet 4

#define HLW_SHOTGUN            7


public plugin_init()
{


    
register_event("DeathMsg","gs2","a")

}

public 
gs2()
{
    
killer read_data(1)

    if(
is_user_alive(killer) && get_user_weapon(killer) == HLW_SHOTGUN)
    {

        
set_pdata_int(killerClip50HL1_OffSet)
    }



see here

wickedd 08-18-2013 12:13

Re: lol
 
WTF! Why did you fuck up all of your threads?


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

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