28.06.2012, 13:54
If you want SMG only:
Under OnPlayerStateChange:
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);
}