Retirar Jogador do Veнculo
#10

Quote:
Originally Posted by rjjj
Посмотреть сообщение
Acontece que OnPlayerEnterVehicle й called (chamado) quando o jogador estб "abrindo a porta" do carro

Por isso nгo funciona, й impossнvel retirar o cara se ele nгo estiver sentado

Isto deve resolver o seu problema:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)//Se o Cara tiver Sentado No Banco ;D
    {
        new vehicleid = GetPlayerVehicleID(playerid);//vehicleid serб o veнculo em que o cara tб sentado.
        if(vehicleid > 7 && vehicleid < 14 && gPlayer[playerid][pOrg] != 1)
        {
            SendClientMessage(playerid, COLOR_GRAY, "* Nгo йs membro da Groove Street!"); //A mensagem aparece
            RemovePlayerFromVehicle(playerid); //O jogador nгo й ejetado do veнculo =|
        }
    }
    return 1;
}

Espero ter ajudado
public OnPlayerStateChange ... Mais uma public que eu nгo desconhecia a funзгo.

Obrigado rjjj *------------* O SetPlayerPos do Baddark2131 funcionou, mas prefiro a animaзгo do jogador saindo do carro rsrs.

Abraзos.

Abraзos.
Reply


Messages In This Thread
Retirar Jogador do Veнculo - by Yakushi Icefox - 14.02.2011, 17:11
Re: Retirar Jogador do Veнculo - by Baddark2131 - 14.02.2011, 17:15
Re: Retirar Jogador do Veнculo - by Macintosh - 14.02.2011, 17:16
Re: Retirar Jogador do Veнculo - by Baddark2131 - 14.02.2011, 17:19
Re: Retirar Jogador do Veнculo - by Macintosh - 14.02.2011, 17:22
Re: Retirar Jogador do Veнculo - by Baddark2131 - 14.02.2011, 17:23
Re: Retirar Jogador do Veнculo - by Yakushi Icefox - 14.02.2011, 17:25
Re: Retirar Jogador do Veнculo - by Baddark2131 - 14.02.2011, 17:27
Re: Retirar Jogador do Veнculo - by rjjj - 14.02.2011, 17:32
Re: Retirar Jogador do Veнculo - by Yakushi Icefox - 14.02.2011, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)