[Ajuda] Sair do veiculo
#6

PHP Code:
new bool:TaPreso[MAX_PLAYERS];
new 
VeiculoPreso;

public 
OnGameModeInit() {
    
Veiculo CreateVehicle(4110.00.015.00.066, -1);
    return 
1;
}

public 
OnPlayerSpawn(playerid) {
    
TaPreso[playerid] = true;
    
PutPlayerInVehicle(playeridVeiculo0);
    return 
1;
}

public 
OnPlayerStateChange(playeridnewstateoldstate) {
    if(
newstate != PLAYER_STATE_DRIVER) {
        if(
TaPreso[playerid] == truePutPlayerInVehicle(playeridVeiculo0);
    }
    return 
1;

Reply


Messages In This Thread
Sair do veiculo - by KoloradO - 06.11.2018, 14:47
Re: Sair do veiculo - by ipsLuan - 06.11.2018, 15:10
Re: Sair do veiculo - by GSantana - 06.11.2018, 22:08
Re: Sair do veiculo - by Ermanhaut - 07.11.2018, 01:43
Re: Sair do veiculo - by Lucas-Fc - 07.11.2018, 01:57
Re: Sair do veiculo - by RiqueP - 07.11.2018, 16:37
Re: Sair do veiculo - by KoloradO - 07.11.2018, 20:53
Re: Sair do veiculo - by Ermanhaut - 08.11.2018, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)