19.02.2014, 18:57
Quote:
My bad i read it wrong, try
pawn Код:
|
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
SetPlayerArmedWeapon(playerid, 0);
if(newstate==PLAYER_STATE_PASSENGER)
{
new gun,tmpaa;
GetPlayerWeaponData(playerid,4,gun,tmpaa);
#pragma unused tmpaa
if(gun != 28 || gun != 29 || gun != 32 || gun != 31) SetPlayerArmedWeapon(playerid,0);
else SetPlayerArmedWeapon(playerid,gun);
}
return 1;
}