Custom weapon.
#14

it's actually return wep_Total++; ( I think )
A couple ideas you might wanna add, this is similar on S&S Project with textdraws, but to avoid complex things just to start out with, add a pool of ammo that custom weapons can have.
Like for the Ak-xOne must be like 15/x instead of 30/x ; the way you can do that is implement textdraws or automatically reload the gun when the ammo is below that amount. No idea if that's possible but if you find some way on the forums, PM me or write a post here

Edit : ye thats it, southclaw forgot to add the plus plus I guess :3


Код:
DefineCustomWeapon(weaponName[], baseweapon, Float:damage)
{
    format(wep_Data[wep_Total][wep_CustomName], 16 or 8 read above, "%s", weaponName);
    wep_Data[wep_Total][wep_BaseWeapon] = baseweapon;
    wep_Data[wep_Total][wep_Damage] = damage;

    return wep_Total++;
}
Reply


Messages In This Thread
Custom weapon. - by Baltimore - 01.03.2015, 21:30
Re : Custom weapon. - by Baltimore - 01.03.2015, 22:18
Re: Custom weapon. - by maramizo - 01.03.2015, 22:58
Re : Custom weapon. - by Baltimore - 02.03.2015, 00:39
Re : Custom weapon. - by Baltimore - 02.03.2015, 10:24
Re : Custom weapon. - by Baltimore - 02.03.2015, 18:35
Re : Custom weapon. - by Golimad - 02.03.2015, 22:16
Re : Custom weapon. - by Baltimore - 02.03.2015, 22:17
Re : Custom weapon. - by Golimad - 02.03.2015, 22:21
Re : Custom weapon. - by Baltimore - 03.03.2015, 11:37
Re : Custom weapon. - by Baltimore - 03.03.2015, 19:55
Re : Custom weapon. - by Golimad - 03.03.2015, 20:22
Re : Custom weapon. - by Baltimore - 04.03.2015, 00:08
Re : Custom weapon. - by Golimad - 04.03.2015, 00:12
Re : Custom weapon. - by Baltimore - 04.03.2015, 01:32
Re : Custom weapon. - by Golimad - 04.03.2015, 21:47
Re : Custom weapon. - by Baltimore - 21.03.2015, 11:35
Re : Custom weapon. - by Baltimore - 22.03.2015, 09:06
Re: Re : Custom weapon. - by JaydenJason - 22.03.2015, 11:03
Re : Custom weapon. - by Baltimore - 22.03.2015, 19:56
Re : Custom weapon. - by Baltimore - 22.03.2015, 20:16
Re: Custom weapon. - by arjanforgames - 22.03.2015, 21:22
Re : Re: Custom weapon. - by Baltimore - 22.03.2015, 21:39
Re : Custom weapon. - by Baltimore - 28.03.2015, 09:31
Re : Custom weapon. - by Baltimore - 28.03.2015, 10:38
Re : Custom weapon. - by Baltimore - 28.03.2015, 14:34
Re : Custom weapon. - by Baltimore - 28.03.2015, 14:54
Re : Custom weapon. - by Baltimore - 28.03.2015, 20:28
Re : Custom weapon. - by Baltimore - 06.04.2015, 08:46
Re: Custom weapon. - by Baltimore - 02.05.2015, 17:12

Forum Jump:


Users browsing this thread: 2 Guest(s)