if(IsPlayerInVehicle(playerid,LixoCar[0])||IsPlayerInVehicle(playerid,LixoCar[1])||IsPlayerInVehicle(playerid,LixoCar[2])) { if(PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pLeader] != 2) { SendClientMessage(playerid,COLOR_RED,"Vocк nao e um Lixeiro!!!"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } |
if(IsPlayerInVehicle(playerid,testvehicles[0])||IsPlayerInVehicle(playerid,testvehicles[1])||IsPlayerInVehicle(playerid,testvehicles[2])||IsPlayerInVehicle(playerid,testvehicles[3])) { if(PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pLeader] != 2) { SendClientMessage(playerid,COLOR_RED,"Vocк nao esta fazendo um Teste.!!!"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } |
if(PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pLeader] != 2) |
if(IsPlayerInVehicle(playerid,LixoCar[0])||IsPlayerInVehicle(playerid,LixoCar[1])||IsPlayerInVehicle(playerid,LixoCar[2]))
{
if(PlayerInfo[playerid][pEmprego] != 1)
{
SendClientMessage(playerid,COLOR_RED,"Vocк nao e um Lixeiro!!!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
return 1;
}
new bool:TestDriving = 0;
public OnGameModeInit
{
AutoCar[0] = AddStaticVehicle...
AutoCar[1] = AddStaticVehicle...
AutoCar[2] = AddStaticVehicle...
return 1;
}
if(IsPlayerInVehicle(playerid,AutoCar[0])||IsPlayerInVehicle(playerid,AutoCar[1])||IsPlayerInVehicle(playerid,AutoCar[2]))
{
if(TestDriving[playerid] != 1)//Sу um exemplo..
{
SendClientMessage(playerid,COLOR_RED,"Vocк nгo estб fazendo Test Driving!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
return 1;
}