i want limit the player weapon
#1

i don't want the player use eagle and shotgun in the car
how to limit it
Reply
#2

Perhaps check the player's weapon when they press a key whilst in a vehicle? If it's bad, unequip it.
Reply
#3

If you want SMG only:

Under OnPlayerStateChange:
pawn Код:
if(newstate == 3) // Entered a vehicle as a passenger
{
    // Drive-by weapons (SMG only)
    new weaponid, ammo;
    GetPlayerWeaponData(playerid, 4, weaponid, ammo); // 4 is the SMG slot
    SetPlayerArmedWeapon(playerid, weaponid);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)