[AJUDA] Carro some depois que o outro player entra
#7

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == 562)
    {
        ShowPlayerDialog(playerid,Infoo+16,DIALOG_STYLE_MSGBOX,".:: DrF - Informaзхes do Carro ::.","~>Que tunar seu carro? Digite: /Tunar\n~>Quer reparar e desvirar seu carro? Digite: /Ajuda","\n ","Fechar");
        return true;
    }
    SendClientMessage(playerid, 0xAAAAAAAA, ".::[INFO] Este Servidor Possui Sistema Anti-Roubo, Caso Roubar Serб Morto Automaticamente !");
    if(!ispassenger && IsVehicleOccupied(vehicleid)) SetPlayerHealth(playerid, 0.0);
    return true;
}
No Final do GM :

pawn Код:
stock IsVehicleOccupied(vehicleid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
}
Ver nй :C
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)