Siren
#1

Hello, unfortunately i have implemented a mysql vehicle system to my gamemode,
But i forgot that the vehicle siren state is unset.

so, i have 3 vehicle types.
#define VEHICLE_TYPE_GLOBAL (0)
#define VEHICLE_TYPE_LEO (1)
#define VEHICLE_TYPE_ARMY (2)

I have already configured leo, and army.
However the vehicle type global should not have sirens, just the normal horn.
I've tried the following code however this is not working, so i was hoping someone could be of help.

Код:
	if(gTeam[playerid] == TEAM_CIVIL && ServerVehicle[vehicleid][Type] == VEHICLE_TYPE_GLOBAL)
	{
		new siren = GetVehicleParamsSirenState(vehicleid);
 
		if(siren == 1)
		{
    	siren == 0; 
		}
		return 1;
	}
Reply


Messages In This Thread
Siren - by yvoms - 12.01.2016, 18:51
Re: Siren - by thefirestate - 12.01.2016, 19:09
Re: Siren - by yvoms - 12.01.2016, 19:17
Re: Siren - by Vince - 12.01.2016, 19:29
Re: Siren - by yvoms - 12.01.2016, 19:39
Re: Siren - by AndreiWow - 12.01.2016, 21:28

Forum Jump:


Users browsing this thread: 4 Guest(s)