01.01.2011, 11:04
(
Last edited by OldDirtyBastard; 01/01/2011 at 02:52 PM.
)
Both of your solutions are not complete, for the first it disables drive-by completly,
second when you have a smg like tec,uzi or mp5 but you enter as a passager holding
a weapon that is in the exepctions, you still wont be able to drive-by even you
have the alowed weapons.
My soltuion was mod the script of mister __ (lol @ the name btv
)
This turns the drive-by to like it was before 0.3c,
Its tested and only issue i found is that when you have Brass Knuckles,
when you enter as passager it sets your armed weapon to fists for some reason.
When you get out the car, and switch weapons, you have the Brass Knuckles back :P
I tried something to solve this issue
but it didnt worked for some reason :/
if theres any 1337 scripter that can make this even more better,
your welcome
Regards.
second when you have a smg like tec,uzi or mp5 but you enter as a passager holding
a weapon that is in the exepctions, you still wont be able to drive-by even you
have the alowed weapons.
My soltuion was mod the script of mister __ (lol @ the name btv
)pawn Code:
new uberhaxeddbweps[] =
{24, 25, 26}; //Disalowed drive-by weapons.
new smgs[] =
{29, 28, 32}; //Alowed drive-by weapons.
if(newstate == PLAYER_STATE_PASSENGER) {
for(new i = 0; i < sizeof(uberhaxeddbweps); i++) {
if(GetPlayerWeapon(playerid) == uberhaxeddbweps[i]) SetPlayerArmedWeapon(playerid, 1);
else
{
SetPlayerArmedWeapon(playerid, smgs[i]);
}
}
}
return 1;
}
Its tested and only issue i found is that when you have Brass Knuckles,
when you enter as passager it sets your armed weapon to fists for some reason.
When you get out the car, and switch weapons, you have the Brass Knuckles back :P
I tried something to solve this issue
pawn Code:
new fists[] =
{0, 1};
//onplayerstatechange
if(GetPlayerWeapon(playerid) == uberhaxeddbweps[i]) SetPlayerArmedWeapon(playerid, fists[i]);
if theres any 1337 scripter that can make this even more better,
your welcome

Regards.

