[Ajuda] Carro
#2

PHP код:
/*
    Um exemplo com 2 veнculos, vocк pode fazer com mais, se desejar.
*/
new pub_Car[2];
public 
OnGameModeInit()
{
    
// Obviamente vocк deve substituir os parвmetros do AddStaticVehicleEx abaixo
    
pub_Car[0] = AddStaticVehicleEx(modelidFloat:spawn_xFloat:spawn_yFloat:spawn_zFloat:z_anglecolor1color2respawn_delay);
    
pub_Car[1] = AddStaticVehicleEx(modelidFloat:spawn_xFloat:spawn_yFloat:spawn_zFloat:z_anglecolor1color2respawn_delay);
    return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER)
    {
        new 
VehID GetPlayerVehicleID(playerid);
        if(
VehID == pub_Car[0] || VehID == pub_Car[1]) {
            
SendClientMessage(playerid, -1"[INFO] Vocк entrou em um veнculo pъblico do [BVV] Brasil Vida Virtual.");
        }
    }
    return 
1;

Reply


Messages In This Thread
Carro - by HusteD - 08.08.2018, 22:09
Re: Carro - by InsaneBR - 08.08.2018, 22:32
Re: Carro - by HusteD - 08.08.2018, 23:00
Re: Carro - by InsaneBR - 08.08.2018, 23:26

Forum Jump:


Users browsing this thread: 2 Guest(s)