Reserved car
#5

First of all, why are you complicating things?
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
}
EDIT: Yeah, I posted it too late.
Reply


Messages In This Thread
Reserved car - by AlexBlack - 25.12.2014, 18:07
Re : Reserved car - by StreetRP - 25.12.2014, 18:15
Re: Reserved car - by Ryz - 25.12.2014, 18:17
Re : Reserved car - by AlexBlack - 25.12.2014, 18:18
Re: Reserved car - by dominik523 - 25.12.2014, 18:21
Re : Reserved car - by AlexBlack - 25.12.2014, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)