Code:
new vipcars;
///////////////
vipcars = CreateVehicle(415, 2541.9836, 2373.1616, 4.2078, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(494, 2542.0288, 2369.3257, 4.2078, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(601, 2525.2507, 2364.4233, 4.2071, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(601, 2525.2004, 2368.7664, 4.2071, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(601, 2525.7378, 2372.9229, 4.2071, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(601, 2525.3804, 2376.8618, 4.2071, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(601, 2525.5127, 2381.3167, 4.2071, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(568, 2515.0525, 2363.9822, 4.5085, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(495, 2516.2449, 2382.1934, 4.5085, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(444, 2516.2219, 2377.1284, 4.5085, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(557, 2515.5313, 2372.4619, 4.5085, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(424, 2514.8418, 2368.2844, 4.5085, 90.0000, -1, -1, 10000);
vipcars = CreateVehicle(447, 2494.1953, 2398.8889, 71.5000, 0.0000, -1, -1, 10000);
vipcars = CreateVehicle(488, 2494.1772, 2387.4556, 71.5327, 0.0000, -1, -1, 10000);
vipcars = CreateVehicle(476, 2477.7434, 2355.8086, 71.5000, 0.0000, -1, -1, 10000);
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == VIP_CAR1)
{
if(pInfo[playerid][VIPLevel] < 2)
{
SendClientMessage(playerid, 0xFF0000FF, "You need to be VIP Member (Level 2) to use this vehicle.");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}