Cop Cars
#1

pawn Код:
new CopCar[5];

public OnGameModeInit()
{
    CopCar[0] = AddStaticVehicleEx(481, 2017.79626465, 1348.03881836, 10.42908859, 270.00000000, -1, -1, 120)
    CopCar[1] = AddStaticVehicleEx(402, 2100.76831055, 1398.23278809, 10.71031284, 180.00000000, -1, -1, 120)
    CopCar[2] = AddStaticVehicleEx(429, 2110.30151367, 1408.58972168, 10.57031250, 0.00000000, -1, -1, 120)
    CopCar[3] = AddStaticVehicleEx(562, 2145.59790039, 1408.61889648, 10.57386208, 0.00000000, -1, -1, 120)
    CopCar[4] = AddStaticVehicleEx(603, 2129.59667969, 1398.18261719, 10.82298756, 180.00000000, -1, -1, 120)
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(CopCar[5]) //error 017: undefined symbol "CopCar"
    {
        SendClientMessage(playerid, 0xFF0000FF, "ROFL! xD You stole a cop car!");
        SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid, +1);
        return 1;
    }
    return 1;
}
Reply
#2

Never Mind, i solved the problem, LOL!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)