[Ajuda] Comando pra carro ligar
#1

Galera , os carros do servidor nascem todos desligados!
Queria que quando o player apertasse [SHIFT] o carro ligasse....

Obrigado!
Reply
#2

Tenta isso... boa sorte!

Код:
 
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_JUMP))
	{
		if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		{
			new engine,lights,alarm,doors,bonnet,boot,objective;
                        GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
                        SetVehicleParamsEx(GetPlayerVehicleID(playerid),VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
		}
	}
	return 1;
}
Reply
#3

Nгo deu certo nгo...
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)