13.03.2012, 21:12
As.. I am tired(sorry), i won't make this very hard, just simple
new vipcar;
new admincar;
//ongamemodeinit
vipcar = CreateVehicle(....);
admincar = CreateVehicle(....);
//OnPlayerEnterVehicle
if(vehicleid == vipcar && !IsPlayerVip(playerid) && ispassenger == 0) return SendClientMessage(playerid,-1,"Kiddo, this is a VIP car, go donate!");
if(vehicleid == admincar && !IsPlayerAdmin(playerid) && ispassenger == 0) return SendClientMessage(playerid,-1,"Kiddo, this is an admin car, shoo!");
dno if this works, too tired to double check it, goodluck already.
new vipcar;
new admincar;
//ongamemodeinit
vipcar = CreateVehicle(....);
admincar = CreateVehicle(....);
//OnPlayerEnterVehicle
if(vehicleid == vipcar && !IsPlayerVip(playerid) && ispassenger == 0) return SendClientMessage(playerid,-1,"Kiddo, this is a VIP car, go donate!");
if(vehicleid == admincar && !IsPlayerAdmin(playerid) && ispassenger == 0) return SendClientMessage(playerid,-1,"Kiddo, this is an admin car, shoo!");
dno if this works, too tired to double check it, goodluck already.