Keeping the gun with no ammo???
#4

pawn Код:
new GunObjectIDs[200] ={

   1575,  331, 333, 334, 335, 336, 337, 338, 339, 341, 321, 322, 323, 324, 325, 326, 342, 343, 344, -1,  -1 , -1 ,
   346, 347, 348, 349, 350, 351, 352, 353, 355, 356, 372, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
   368, 369, 1575 , 1575 , 1575 , 1575 , 1575 , 1575 , 1575 , 1575 , 1575 ,
};

stock GetGunObjectID(wepID)
{
    if (wepID < 0 || wepID > 64)
    {
        return 1575;
    }
    return GunObjectIDs[wepID];
}
then use OnPlayerKeyStateChange to detect if he pressed KEY_FIRE and == 1 ammo then create an object and attach it to the players hand? Not sure on the offset as it would differ with the skins.
Reply


Messages In This Thread
Keeping the gun with no ammo??? - by [MNC]Azz - 12.02.2011, 22:23
Re: Keeping the gun with no ammo??? - by Hash [NL-RP] - 12.02.2011, 22:59
Re: Keeping the gun with no ammo??? - by jesse237 - 12.02.2011, 23:14
Re: Keeping the gun with no ammo??? - by Shadow™ - 13.02.2011, 01:49
Re: Keeping the gun with no ammo??? - by [MNC]Azz - 21.02.2011, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)