VIP Cars
#2

This is an example how to do it.
pawn Code:
#define MAX_VIPCARS 10

new VIPCar[MAX_VIPCARS];

public OnGameModeInIt()
{
    VIPCar[0] = AddStaticVehicleEx(451, 1.0, 2.0, 3.0, 4.0, 1, 1, 10);
    VIPCar[1] = AddStaticVehicleEx(560, 2.0, 3.0, 4.0, 5.0, 1, 1, 10);
    // and so on.
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    for(new i = 0; i < MAX_VIPCARS; i++)
    {
        if(vehicleid == VIPCar[i])
        {
            if(PlayerInfo[playerid][pDonator] == 0)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, -1, "You arent VIP");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
VIP Cars - by ChuckyBabe - 09.03.2014, 07:47
Re: VIP Cars - by RenovanZ - 09.03.2014, 08:03
Re: VIP Cars - by ChuckyBabe - 09.03.2014, 08:11
Re: VIP Cars - by RenovanZ - 09.03.2014, 08:18
Re: VIP Cars - by Mado - 09.03.2014, 08:23
Re: VIP Cars - by ChuckyBabe - 09.03.2014, 08:26
Re: VIP Cars - by Mado - 09.03.2014, 08:35
Re: VIP Cars - by ChuckyBabe - 09.03.2014, 08:49
Re: VIP Cars - by Mado - 09.03.2014, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)