Wiso geht das nicht? Hilfe

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
  • }
    return 1;
    }
    if(strcmp(cmdtext,"/light",true) ==0)
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid,2))
    {
    RemovePlayerAttachedObject(playerid,2);
    }
    else
    {
    SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
    }
    return 1;
    }
    }
    if(strcmp(cmdtext,"/armor",true) ==0)
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid,3))
    {
    RemovePlayerAttachedObject(playerid,3);
    RemovePlayerAttachedObject(playerid,4);
    }
    else
    {
    SetPlayerAttachedObject(playerid,3,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
    SetPlayerAttachedObject(playerid,4,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
    }
    return 1;
    }
    if(strcmp(cmd, "/ri1auf", true) == 0) // Fahrschul Tor

  • hey schau mal ich hab das mal als OCMD gemacht und da geht es
    Ganz oben Unter #include <a_samp> machst du
    #include <ocmd>
    Download:breadfish.de/wcf/attachment/3131/
    Pack es in \pawno\include rein
    das kannst du einfügen wo du möchtest
    ocmd:lampe(playerid,params[])
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid,2))
    {
    RemovePlayerAttachedObject(playerid,2);
    }
    else
    {
    SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
    }
    return 1;
    }
    ocmd:armora(playerid,params[]) //tanken
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid,3))
    {
    RemovePlayerAttachedObject(playerid,3);
    RemovePlayerAttachedObject(playerid,4);
    }
    else
    {
    SetPlayerAttachedObject(playerid,3,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
    SetPlayerAttachedObject(playerid,4,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
    }
    return 1;
    }