25.12.2014, 18:21
First of all, why are you complicating things?
EDIT: Yeah, I posted it too late.
pawn Код:
stock IsBallasCar(vehicleid)
{
for(new i = 0; i<53; i++)
{
if(vehicleid == Steven[i])
{
break;
return 1;
}
}
return 0;
}
// OnPlayerVehicle or OnPlayerStateChange
if(IsBallasCar(GetPlayerVehicleID(playerid)) && APlayerData[playerid][Team] == TEAM_BALLAS)
{
// code
}
else
{
// code
}