Jump to content
  • 0

pomoc Nastartování Motoru


Neopry

Dotaz

Ahoj,

Mám nastavený startování motoru přes TAB ale chci to změnít na Levý Alt protže TAB vám přece ukáže ve hře tabulku s online hráčema a to se mi nelíbí. Nevíte jak mám změnit ten příkaz tak aby to šlo na Levý Alt ?

 

Startování motoru :

forward Motor(playerid);
new bool:MotorStarted[MAX_PLAYERS];
#define KEY_L.ALT (1)
public OnPlayerExitVehicle(playerid, vehicleid)
{
MotorStarted[playerid] = false; //Vypne motor
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
if(GetPlayerState(playerid) == 2)
{
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, 0x33AA33AA, "Pro nastartování motoru, zmáčkni Levý Alt.");
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
if(newkeys == KEY_L.ALT )
{
if(GetPlayerState(playerid) == 2)
{
SendClientMessage(playerid, 0x33AA33AA, "Startuji motor...");
MotorStarted[playerid] = true;
SetTimerEx("Motor",2000,0,"i",playerid);
}
}
public Motor(playerid)
{
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, 0x33AA33AA, "Motor nastartován.");
}

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...