Jump to content
  • 0

pomoc Motor


Domino

Dotaz

Čaute potřebuju pomoct s motorem ale nevím jak mám to mám změnit

#include <a_samp>
new motor[700];
forward Starting(playerid);
public OnFilterScriptInit()
{
print("-------------------------------------");
print("---------- Startovani auta ----------");
print("---------Autor: [JL]Suka-------------");
print("------------[JL]Clan 2008------------");
return 0;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new start1 = GetPlayerVehicleID(playerid);
new start2 = GetVehicleModel(playerid);
if(newstate == 2)
{
 if(!motor[start1] && 510 != start2 && 509 != start2 && 481 != start2)
 {
  TogglePlayerControllable(playerid, false);
  SendClientMessage(playerid, 0xFFFF00AA, "* Auto neni nastartovany. Nastartuj stisknutim: TAB");
 }
 else
 {
  SendClientMessage(playerid, 0xFFFF00AA, "* Auto uz je nastartovany!");
 }
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 1)
{
 if(IsPlayerInAnyVehicle(playerid))
 {
  if(IsPlayerConnected(playerid))
  {
   new start1 = GetPlayerVehicleID(playerid);
   if(!motor[start1])
   {
 SendClientMessage(playerid, 0xFFFF00AA, "* Startuji...");
 GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~Startuji...", 3000, 3);
 SetTimerEx("Starting", 3500, false, "i", playerid);
   }
  }
 }
}
return 0;
}
public Starting(playerid)
{
new start1 = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
 if(IsPlayerInAnyVehicle(playerid))
 {
 motor[start1] = 1;
 TogglePlayerControllable(playerid, true);
 SendClientMessage(playerid, 0xFFFF00AA, "* Auto nastartovano!");
   }else{
 SendClientMessage(playerid, 0xFFFF00AA, "* Auto se nezdarilo nastartovat,zkuste znovu: TAB!");
 }
}
return 1;
}

Chtěl bych to změnit místo TABU na Levý ALT kdo poradí? Díky

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_WALK)
{
 if(IsPlayerInAnyVehicle(playerid))
 {
  if(IsPlayerConnected(playerid))
  {
       new start1 = GetPlayerVehicleID(playerid);
       if(!motor[start1])
       {
        SendClientMessage(playerid, 0xFFFF00AA, "* Startuji...");
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~Startuji...", 3000, 3);
        SetTimerEx("Starting", 3500, false, "i", playerid);
       }
  }
 }
}
return 0;
}

takto to je cez L.ALT ;)

Link to comment
Share on other sites

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...