[AJUDA]Ligando e desligando carro.
#9

Quote:
Originally Posted by DJ Bruninho
Посмотреть сообщение
PHP код:
new CarroLigo;// Comeзo do GM
public OnGameModeInit()
{
    
ManualVehicleEngineAndLights();
    
CarroLigo == 0;
    return 
1;
}
public 
OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(
newkeys == KEY_SUBMISSION)
    {
        new 
a[8];
        
GetVehicleParamsEx(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);
        if(
a[1] == 0)
        {
            if(
CarroLigo == 0)
            {
            
SendClientMessage(playerid,-1,"Vocк ligou o carro !");
            
SetVehicleParamsEx(a[0],1,a[2],a[3],a[4],a[5],a[6],a[7]);
            
CarroLigo 1;
            }
        }
        else
        {
            if(
CarroLigo == 1)
            {
            
SendClientMessage(playerid,-1,"Vocк desligou o carro !");
            
SetVehicleParamsEx(a[0],0,a[2],a[3],a[4],a[5],a[6],a[7]);
            
CarroLigo 0;
            }
        }
    }
    return 
1;

Tenta ae!
Erros:

CarroLigo == 0;

e vocк deveria usar uma array com MAX_PLAYERS :B


@OFF: PQP
This forum requires that you wait 120 seconds between posts. Please try again in 28 seconds.
Reply


Messages In This Thread
[AJUDA]Ligando e desligando carro. - by danktog - 09.08.2011, 21:25
Re: [AJUDA]Ligando e desligando carro. - by Gabriel Duarte - 09.08.2011, 21:30
Re: [AJUDA]Ligando e desligando carro. - by RockFire - 09.08.2011, 21:32
Re: [AJUDA]Ligando e desligando carro. - by danktog - 09.08.2011, 21:35
Re: [AJUDA]Ligando e desligando carro. - by RockFire - 09.08.2011, 21:39
Re: [AJUDA]Ligando e desligando carro. - by danktog - 09.08.2011, 21:46
Re: [AJUDA]Ligando e desligando carro. - by RockFire - 09.08.2011, 21:51
Re: [AJUDA]Ligando e desligando carro. - by Bruno Pereira - 09.08.2011, 21:52
Re: [AJUDA]Ligando e desligando carro. - by RockFire - 09.08.2011, 21:56
Re: [AJUDA]Ligando e desligando carro. - by Bruno Pereira - 09.08.2011, 21:59

Forum Jump:


Users browsing this thread: 6 Guest(s)