Vip Car Help
#5

is it posible to do something like
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;
}
just to avoid to put vipcar1 vipcar2 vipcar3 ...
Reply


Messages In This Thread
Vip Car Help - by Salsa - 29.09.2011, 16:23
Re: Vip Car Help - by iPLEOMAX - 29.09.2011, 16:28
Re: Vip Car Help - by Salsa - 29.09.2011, 16:44
Re: Vip Car Help - by Kingunit - 29.09.2011, 16:51
Re : Vip Car Help - by Amine_Mejrhirrou - 14.05.2012, 06:40
Re: Vip Car Help - by Ballu Miaa - 14.05.2012, 07:23
Re : Vip Car Help - by Amine_Mejrhirrou - 14.05.2012, 09:12
Re: Re : Vip Car Help - by Ballu Miaa - 14.05.2012, 10:39
Re : Vip Car Help - by Amine_Mejrhirrou - 14.05.2012, 17:30

Forum Jump:


Users browsing this thread: 2 Guest(s)