Keeping the gun with no ammo???
#1

Soooo... Yeah...
I wanted to know if there is a function or a way or is it even possible
to keep the weapon after finishing the ammo?

Plz help...

Regards....
Reply
#2

Impossible
Reply
#3

AttachObjectToPlayer

Maybe?
Reply
#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
#5

Thx for the advice.... its not rly wt i wanted but still.... now i knw its impossible xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)