07.06.2012, 01:26
Could try this
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
new Weap[2];
GetPlayerWeaponData(playerid, 4, Weap[0], Weap[1]); // Get the players SMG weapon in slot 4
SetPlayerArmedWeapon(playerid, Weap[0]); // Set the player to driveby with SMG
}
return 1;
}