if(newkeys == KEY_JUMP)
{
if (IsPlayerInAnyVehicle(playerid))
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective);
GameTextForPlayer(playerid, \"~r~~n~~n~~n~~n~Motor leállítva-|\",3500,3);
SetPlayerChatBubble(playerid, \"Leállítja a motrot,és behúzza a kéziféket!!\", COLOR_PURPLE, 80.0, 10000);
}
}
if(newkeys == KEY_SPRINT)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerConnected(playerid))
{
if(!engineOn[GetPlayerVehicleID(playerid)])
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
return 1;
}
if(IsAnOwnableCar(newcar))
{
if(PlayerInfo[playerid][pPcarkey] == newcar) { }
else if(PlayerInfo[playerid][pPcarkey2] == newcar) { }
else if(PlayerInfo[playerid][pPcarkey3] == newcar) { }
else { return 1; }
}
if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
{
return 1;
}
if(newcar == 59 || newcar == 60)
{
return 1;
}
if(kerekbilincs[GetPlayerVehicleID(playerid)] != 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, \"Kerékbilincs van az autón hogy akarod elvinni?\");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
if(IsAHarvest(newcar))
{
return 1;
}
if(Halaszhajo(newcar))
{
return 1;
}
if(IsAPlane(newcar))
{
return 1;
}
if(IsASweeper(newcar))
{
return 1;
}
if(gEngine[playerid] == 1) { return 1; }
PutPlayerInVehicle(playerid, newcar, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), \"* %s ki engedi a kéziféket.\", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerChatBubble(playerid, \"Elfordítja a kulcsot,és beindítja a motrot!\", COLOR_PURPLE, 80.0, 10000);
SetTimerEx(\"StartingTheVehicle\",3500,0,\"i\",playerid);
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), ON, lights, alarm, doors, bonnet, boot, objective);
GameTextForPlayer(playerid, \"~g~~n~~n~~n~~n~Motor üzemel-|\",3500,3);
gEngine[playerid] = 1;
return 1;
}
}
}
}
eltudom índítani,leállítani is de,újra indítani mar nem:| mitõl van?