[Ajuda] Coloca algums Carro nгo desligar
#1

Como colocar para algums Carro nгo desligar ?

PHP код:
 if (strcmp("/motoron"cmdtexttrue10) == 0)
    {
        new 
motlualarporcappormaob;
        new 
carro GetPlayerVehicleID(playerid);
        new 
modeloo GetVehicleModel(playerid);
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
        if(
carro != INVALID_VEHICLE_ID)
        {
                if(
motor[playerid] == 0)
                {
                    
GetVehicleParamsEx(carromotlualarporcappormaob);
                    
SetVehicleParamsEx(carroVEHICLE_PARAMS_ONlualarporcappormaob);
                    
motor[playerid] = 1;
                    
SendClientMessage(playerid0xFFFFFFAA"Veiculo {2F991A}Ligado!");
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "* %s liga o motor do veнculo."sendername);
                    
ProxDetector(5.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
              }
            } 
    }
     if (
strcmp("/motoroff"cmdtexttrue10) == 0)
    {
        new 
motlualarporcappormaob;
        new 
carro GetPlayerVehicleID(playerid); 
      if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
      {
        if(
carro != INVALID_VEHICLE_ID)
            { 
                if(
motor[playerid] == 1)
                {
                    
GetVehicleParamsEx(carromotlualarporcappormaob);
                    
SetVehicleParamsEx(carroVEHICLE_PARAMS_OFFlualarporcappormaob);
                    
motor[playerid] = 0;
                    
SendClientMessage(playerid0xFFFFFFAA"Veiculo {E31919}Desligado!");
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "* %s desliga o motor do veнculo."sendername);
                    
ProxDetector(5.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                } 
              }
            }
    } 
Reply


Messages In This Thread
Coloca algums Carro nгo desligar - by victorlus - 27.06.2014, 21:18
Re: Coloca algums Carro nгo desligar - by Coreia - 27.06.2014, 21:23
Re: Coloca algums Carro nгo desligar - by MultiKill - 27.06.2014, 21:25
Re: Coloca algums Carro nгo desligar - by MultiKill - 27.06.2014, 21:27
Re: Coloca algums Carro nгo desligar - by WLSF - 27.06.2014, 21:28
Re: Coloca algums Carro nгo desligar - by victorlus - 27.06.2014, 21:33
Re: Coloca algums Carro nгo desligar - by MultiKill - 27.06.2014, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)