06.02.2014, 06:53
(
Последний раз редактировалось Sting.; 07.02.2014 в 09:04.
)
Ok guys well, I've already tried this and I really can't get it. All the weapons I want are the SMG, UZI, TEC 9, AK47 & M4. I've tried this last time but I couldn't get both with the class of "Driveby Weapons" and "Assault Rifles". How do I make it that when a player enters a car, no matter he has a "Driveby-able" gun or a "assault rifle" gun, he can use it in a driveby. The rest such as deagles and shotguns nah.... . Well I will provide the code below and hope someone could shed some light on this matter for me greatly.
Currently: The guns that I can use for driveby are the SMG, Tec9 and Uzi even when I just added one ID which was the: (2
UZI. Now how do I also make it assault rifle supported too?
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER )
{
SetPlayerArmedWeapon( playerid, 0 );
}
if( newstate == PLAYER_STATE_PASSENGER )
{
SetPlayerArmedWeapon( playerid, 28 );
}
if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
{
StopAudioStreamForPlayer(playerid); // Stop the audio stream
}
return 1;
}
UZI. Now how do I also make it assault rifle supported too?

