Getting the weapon slot of the armed weapon
#6

pawn Код:
new
    Weapons = 0, Ammo;
   
for( new i = 0; i < 13; i ++ )
{
    GetPlayerWeaponData( playerid, i, Weapons, Ammo );
    if(Weapons == GetPlayerWeapon(playerid))
    {
        printf("The slot is: %d", i);
    }
}
Reply


Messages In This Thread
Getting the weapon slot of the armed weapon - by milanosie - 04.02.2012, 11:24
Re: Getting the weapon slot of the armed weapon - by Konstantinos - 04.02.2012, 11:26
Re: Getting the weapon slot of the armed weapon - by milanosie - 04.02.2012, 11:29
Re: Getting the weapon slot of the armed weapon - by Konstantinos - 04.02.2012, 11:37
Re: Getting the weapon slot of the armed weapon - by milanosie - 04.02.2012, 11:39
Re: Getting the weapon slot of the armed weapon - by Universal - 04.02.2012, 12:10
Re: Getting the weapon slot of the armed weapon - by milanosie - 04.02.2012, 12:12

Forum Jump:


Users browsing this thread: 2 Guest(s)