[Ajuda] Ligar veнculo
#7

Alterei e ainda estб do mesmo jeito, o jogador entra e consegue acelerar normalmente.
PHP код:
public OnFilterScriptInit()
{
    print(
"\n===============================");
    print(
"*******************************");
    print(
"\nFilterScript By Willian_Luigi\n");
    print(
"*******************************");
    print(
"===============================\n");
    
ManualVehicleEngineAndLights();
    return 
1;
}
new 
motor[MAX_PLAYERS], farol[MAX_PLAYERS];
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
IsPlayerInAnyVehicle(playerid) && newkeys == 1)
    {
        if(
motor[playerid] == 0)
        {
            new 
car GetPlayerVehicleID(playerid), williandlcdmaishe;
            
GetVehicleParamsEx(carwilliandlcdmaishe);
            
SetVehicleParamsEx(carVEHICLE_PARAMS_ONlliandlcdmaishe);
            
motor[playerid] = 1;
            
SendClientMessage(playerid, -1"Motor Ligado com Sucesso.");
            return 
1;
        }
        else if(
motor[playerid] == 1)
        {
            new 
car GetPlayerVehicleID(playerid), williandlcdmaishe;
            
GetVehicleParamsEx(carwilliandlcdmaishe);
            
SetVehicleParamsEx(carVEHICLE_PARAMS_OFFlliandlcdmaishe);
            
motor[playerid] = 0;
            
SendClientMessage(playerid,-1"Motor Desligado com Sucesso.");
            return 
1;
        }
        return 
1;
    } 
Reply


Messages In This Thread
Ligar veнculo - by GabrielBiel - 22.07.2016, 16:42
Respuesta: Ligar veнculo - by SammyJ - 22.07.2016, 16:44
Re: Ligar veнculo - by GabrielBiel - 22.07.2016, 16:46
Respuesta: Ligar veнculo - by SammyJ - 22.07.2016, 16:48
Re: Ligar veнculo - by GabrielBiel - 22.07.2016, 16:53
Respuesta: Ligar veнculo - by SammyJ - 22.07.2016, 16:56
Re: Ligar veнculo - by GabrielBiel - 22.07.2016, 17:46
Re: Ligar veнculo - by MBJ - 23.07.2016, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)