Motor geht aus

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Da steht:


    if(GetPlayerState(playerid) == 1)
    {
    return 1;
    }
    if(gGas[playerid] == 1)
    {
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);
    }
    if(speedcount[playerid] > 0)
    {
    speedcount[playerid] = 0;
    }
    if(Spieler[playerid][sDuty] == 1)
    {
    Spieler[playerid][sDuty] = 0;
    }
    return 1;
    }

  • if(strcmp(cmd, "/motor", true) == 0)
    {
    if(PlayerInfo[playerid][pAuto] == 1)
    {
    OnPlayerCommandText(playerid,"/stopauto");
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~r~Motor ausgeschaltet!",2000,3);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s schaltet den Motor aus.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if(PlayerInfo[playerid][pAuto] == 0)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s Versucht den Motor zu starten.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~p~Motor wird gestartet...",3700,3);
    SetTimerEx("Starting",2600,0,"i",playerid);
    Audio_Play(playerid, 4, false, false, false);
    OnPlayerCommandText(playerid,"/loadpl");
    }
    return 1;

  • sry


    public Starting(playerid)
    {
    new RandomStart;
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    RandomStart = random(12);
    switch(RandomStart)
    {
    case 0,1,2,3,4,5,6,7,8,9:
    {
    new string[256];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    OnPlayerCommandText(playerid,"/startcar");
    TogglePlayerControllable(playerid,1);
    GameTextForPlayer(playerid,"~g~Motor wurde Gestartet", 1000, 1);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s startet den Motor.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    case 10,11,12:
    {
    new string[256];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GameTextForPlayer(playerid,"~r~Dein Motor ist abgesoffen", 2500, 1);
    format(string, sizeof(string), "* %s Motor ist abgesoffen.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    }
    }
    }
    return 1;