09.03.2012, 18:41
Hey are there an guide how to script like when i have map taxi cars so just taxi driver can drive the taxi?
taxi1 = CreateVehicle...
taxi2 = CreateVehicle...
if(GetPlayerVehicleID(playerid) == taxi1)
{
if(PlayerData[playerid][TaxiDriver] == 0)
{
SendClientMessage(playerid,0xFF0000FF,"ERROR: You are not a taxi driver");
RemovePlayerFromVehicle(playerid);
}
}
if(GetPlayerVehicleID(playerid) == taxi2)
{
if(PlayerData[playerid][TaxiDriver] == 0)
{
SendClientMessage(playerid,0xFF0000FF,"ERROR: You are not a taxi driver");
RemovePlayerFromVehicle(playerid);
}
}