[Ajuda] Comando /abastecer
#7

Exemplo, a gasolina acaba. Ai o carro continua funcionando normal. Quando a gasolina acabar, ele parar de funcionar.

Код:
if(Gasosa[playerid] == 0 && Avisado[playerid] == false) {
                SendClientMessage(playerid,0xFFFF00AA,"Voce esta sem gasolina.");
                Avisado[playerid] = true;
                new idcarro = GetPlayerVehicleID(playerid);
			    new engine,lights,alarm,doors,bonnet,boot,objective;
            	GetVehicleParamsEx(idcarro, engine, lights, alarm, doors, bonnet, boot, objective);
                SetVehicleParamsEx(idcarro, 0, lights, alarm, doors, bonnet, boot, objective);
				}else{
					new idcarro = GetPlayerVehicleID(playerid);
			    	new engine,lights,alarm,doors,bonnet,boot,objective;
            		GetVehicleParamsEx(idcarro, engine, lights, alarm, doors, bonnet, boot, objective);
                	SetVehicleParamsEx(idcarro, 1, lights, alarm, doors, bonnet, boot, objective);
Reply


Messages In This Thread
[Ajuda] Comando /abastecer - by rafa3dify - 26.09.2011, 22:42
Re: Comando /abastecer - by Josma_cmd - 26.09.2011, 22:44
Re: Comando /abastecer - by Dolby - 26.09.2011, 22:45
Re: Comando /abastecer - by Pharrel - 26.09.2011, 22:45
Re: Comando /abastecer - by rafa3dify - 26.09.2011, 23:06
Re: Comando /abastecer - by Pharrel - 26.09.2011, 23:07
Re: Comando /abastecer - by rafa3dify - 26.09.2011, 23:11
Re: Comando /abastecer - by Josma_cmd - 26.09.2011, 23:13
Re: [Ajuda] Comando /abastecer - by rafa3dify - 26.09.2011, 23:18
Re: [Ajuda] Comando /abastecer - by Pharrel - 26.09.2011, 23:21

Forum Jump:


Users browsing this thread: 2 Guest(s)