09.03.2012, 19:43
well make the taxi cars into like new taxi1,taxi2; so under your gamemode it should bel ike this
Under onplayerstatechange do this
pawn Код:
taxi1 = CreateVehicle...
taxi2 = CreateVehicle...
pawn Код:
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);
}
}