if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
if(Player[playerid][Job] == 8 || Player[playerid][Job2] == 8)
{
SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
OnTaxiDuty[playerid] = 1;
}
else
{
SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
RemovePlayerFromVehicle(playerid);
}
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
if(Player[playerid][Job] == 8 || Player[playerid][Job2] == 8)
{
SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
OnTaxiDuty[playerid] = 1;
}
else
{
if(OnTaxiDuty[playerid] == 0)
{
SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
RemovePlayerFromVehicle(playerid);
}
}
}
OnTaxiDuty[playerid] = 1;
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
if(Player[playerid][Job] == 8 && Player[playerid][Job2] == 8)
{
SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
OnTaxiDuty[playerid] = 1;
}
else
{
SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Try this:
pawn Код:
|
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
if(Player[playerid][Job] == 8 || Player[playerid][Job2] == 8)
{
SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
OnTaxiDuty[playerid] = 1;
}
else
{
SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
RemovePlayerFromVehicle(playerid);
}
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
if(Player[playerid][Job] == 8 || Player[playerid][Job2] == 8)
{
SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
OnTaxiDuty[playerid] = 1;
}
}
else
{
SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
RemovePlayerFromVehicle(playerid);
}
if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 420 )
{
if( ( Player[ playerid ][ Job ] != 8 ) || ( Player[ playerid ][ Job2 ] != 8 ) )
{
SendClientMessage( playerid, WHITE, "You must be a taxi driver to drive a taxi!" );
RemovePlayerFromVehicle( playerid );
return 0;
}
else
{
SendClientMessage( playerid, WHITE, "You are now accepting taxi calls!" );
OnTaxiDuty[ playerid ] = 1;
}
return 1;
}
None of those worked. The problem is, when both my jobs are 8, then it works, but otherwise, it still kicks me out
|