HOW TO BE "/engine" ENGINE ON AND ALSO ENGINE OFF?
#1

This is engine off command.
Код:
CMD:engineoff(playerid, params[])
{
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
			new vehicleid = GetPlayerVehicleID(playerid);
			if(MotorsuzArac(vehicleid))
			    return 1;

    	for(new x = 0; x < MAX_VEHICLES; x++)
		{
        	if(Araclar[x][AracScriptID] == vehicleid)
			{
			    if(Araclar[x][MotorDurum] == 1)
			    {
		  		EmoteMesaj(playerid,5.0, "anahtarı saat yцnьnьn tersine зevirir ve aracın motorunu kapatmaya зalışır.");
				format(MesajString, sizeof(MesajString), "Motor Kapanmıştır - %s",AracIsimleri[GetVehicleModel(vehicleid)-400]);
				DoMesaj(playerid,5.0,MesajString);
		   		Araclar[x][MotorDurum] = 0;
		   		Araclar[x][FarDurum] = 0;
This is engine open command.

Код:
CMD:engine(playerid, params[])
{
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
			new vehicleid = GetPlayerVehicleID(playerid);
			if(MotorsuzArac(vehicleid))
			    return 1;

    	for(new x = 0; x < MAX_VEHICLES; x++)
		{
        	if(Araclar[x][AracScriptID] == vehicleid)
			{
			    if(Araclar[x][Benzin] <= 0)
			    {
			        return HataMesajiYolla(playerid,"Aracın benzini bitmiş.");
			    }

			    if(Araclar[x][MotorDurum] != 0)
			        return 1;

HOW TO BE "/engine" ENGINE ON AND ALSO ENGINE OFF?
Reply
#2

what's wrong?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)