Create multiple weapons on one M4?
#5

And to give the weapon a player, I use this
pawn Код:
GivePlayerWeapon(playerid, M4_AN94, 500)
Or it is something else?


And to identify the damage
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(M4_AN94 == 1) SetPlayerHealth(playerid, HP-44);
    return 1;
}
EDIT: And when it connect? To give him the gun?
Reply


Messages In This Thread
Create multiple weapons on one M4? - by Inuro - 02.12.2014, 15:50
Re: Create multiple weapons on one M4? - by Kyance - 02.12.2014, 16:29
Re : Create multiple weapons on one M4? - by Inuro - 02.12.2014, 16:35
Re: Re : Create multiple weapons on one M4? - by Kyance - 02.12.2014, 16:42
Re : Create multiple weapons on one M4? - by Inuro - 02.12.2014, 16:50
Re: Re : Create multiple weapons on one M4? - by Kyance - 02.12.2014, 16:54
Re : Create multiple weapons on one M4? - by Inuro - 02.12.2014, 16:56
Re: Re : Create multiple weapons on one M4? - by Kyance - 02.12.2014, 16:57
Re : Create multiple weapons on one M4? - by Inuro - 02.12.2014, 17:00
Re: Re : Create multiple weapons on one M4? - by Kyance - 02.12.2014, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)