[Ajuda] cуdigo n funciona
#1

Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
		if(newkeys == 65536 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // Y
		{
			GetVehicleParamsEx(id, engine, lights, alarm, doors, bonnet, boot, objective);
			if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) {
				SetVehicleParamsEx(id, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective);
				SendClientMessage(playerid, Branco, "Vocк abriu a mala do carro !");
			}
			else
			{
				SetVehicleParamsEx(id, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);
				SendClientMessage(playerid, Cinza, "Vocк fechou a mala do carro !");
			}
		}

	}

	new t[80];
	format(t, sizeof(t)," Tecla: %d", newkeys);
	SendClientMessage(playerid, -1, t);
	return true;
}
Fiz esse cуdigo pra abrir a mala do carro apertando Y mais n funciona.

@edit
Reply


Messages In This Thread
cуdigo n funciona - by dimy - 29.09.2018, 16:10
Re: cуdigo n funciona - by GSantana - 29.09.2018, 16:17
Re: cуdigo n funciona - by Ermanhaut - 29.09.2018, 16:18
Re: cуdigo n funciona - by dimy - 29.09.2018, 16:19
Re: cуdigo n funciona - by dimy - 29.09.2018, 16:22
Re: cуdigo n funciona - by Ermanhaut - 29.09.2018, 16:32
Re: cуdigo n funciona - by dimy - 29.09.2018, 16:41
Re: cуdigo n funciona - by Ermanhaut - 29.09.2018, 16:44
Re: cуdigo n funciona - by dimy - 29.09.2018, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)