SA-MP Forums Archive
Cop Cars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cop Cars (/showthread.php?tid=220670)



Cop Cars - Unknown123 - 04.02.2011

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;
}



Re: Cop Cars - Unknown123 - 04.02.2011

Never Mind, i solved the problem, LOL!