Jump to content
  • 0

Ajutor


s3da7iv

Question

2 answers to this question

Recommended Posts

Poftim;

new LightsStatus[MAX_PLAYERS];
if(strcmp(cmd,"/faruri",true) == 0)
	{
		if(IsPlayerInAnyVehicle(playerid))
		{
	 		if(vehicle != INVALID_VEHICLE_ID)
			{
				if(LightsStatus[playerid] == 0)
				{
					GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
					SetVehicleParamsEx(vehicle,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
					LightsStatus[playerid] = 1;
					SendClientMessage(playerid, 0xFFFFFFAA, "Farurile vehiculului sunt acum pornite");
				}
				else if(LightsStatus[playerid] == 1)
				{
					GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
					SetVehicleParamsEx(vehicle,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
					LightsStatus[playerid] = 0;
					SendClientMessage(playerid, 0xFFFFFFAA, "Farurile vehiculului sunt acum oprite");
				}
			}
		}
		else {
		SendClientMessage(playerid, 0x00FF00FF, "Ne pare rau, dar nu esti intr-o masina.");
		}
		return 1;
	}

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.