Consulta algo tonta
#1

Hola їComo hago para deshabilitar las bonificaciones por salto, y todo eso del Gta?
Reply
#2

Usando EnableStuntBonusForAll.

pawn Код:
EnableStuntBonusForAll(enable);
enable - 1 para activar los bonos, 0 para desactivarlos.

Ejemplo de uso:

pawn Код:
public OnGameModeInit()
{
    EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}
Reply
#3

Hola gracias por responder lo puse al final de el public OnGameModeInit y me salen estos errores:
Код:
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1384) : error 021: symbol already defined: "EnableStuntBonusForAll"
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1385) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#4

El mismo error ya te lo dice, ya lo tienes definido, preciona CTRL + F y escribe EnableStuntBonusForAll
borra uno de los que ya tienes.
Reply
#5

Quote:
Originally Posted by Jeree10
Посмотреть сообщение
Hola gracias por responder lo puse al final de el public OnGameModeInit y me salen estos errores:
Код:
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1384) : error 021: symbol already defined: "EnableStuntBonusForAll"
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1385) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Podrнas pasarnos OnGameModeInit? Ese error me parece raro...
Reply
#6

Код:
//CargarAutos();
    return 1;
}

forward AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
public AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
    AutosDelGM++;
    return 1;
}

EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}
Reply
#7

Al final:

pawn Код:
//CargarAutos();
    return 1;
}

forward AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
public AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
    AutosDelGM++;
    return 1;
}

EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}
Cambialo por:

pawn Код:
//CargarAutos();
   
    EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}

forward AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
public AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
    AutosDelGM++;
    return 1;
}

Quedarнa: http://sebsauvage.net/paste/?9ba2e6b...GTZcNZyio4YW0=
Reply
#8

Gracias me copilo bien
No lo testeare ya que confio en vos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)