Beiträge von ChristianW

    Wenn ich Jetpack eingebe bekomme ich ein Jetpack aber wenn ich /schild eingebe bekomme ich das Schild und ein Jetpack



    if(!strcmp(cmd, "/jetpack", true))
    {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
    }

    if(!strcmp(cmd, "/deljetpack", true))
    {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
    }



    if(strcmp(cmd, "/schild",true) == 0)
    {
    if(IsACop(playerid))
    {
    PutRiotShieldOnArm(playerid);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED,"Du bist kein Cop!");
    }
    return 1;
    }


    Der callback


    PutRiotShieldOnArm(playerid)
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
    SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
    }

    //NR Fraktion 1
    if(newstate == PLAYER_STATE_DRIVER)
    for(new i; i< sizeof(FahrschulVehs); i++) //Wir erstellen eine Zählvariable Namens i! FAHRZEUGE ist das Array mit den Fraktionsautos! Fahrzeuge muss dann mit dem jeweiligen Array der Fahrzeuge für die jeweilige Fraktion ersetzt werden!
    {
    if(PlayerInfo[playerid][pMember] > 11 || PlayerInfo[playerid][pLeader] > 11 || TakingLesson[playerid] = 1) //Wieder ein erfundenes Array, musst du halt auf deine Fraktionsabfrage anpassen! Wir überprüfen ob der Spieler in der jeweiligen Fraktion ist!
    {
    return 1; //Wenn ja dann geben wir den Wert true zurück! Der Spieler kann einsteigen!
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }


    Liegt an Takinglesson

    Wie kann ich machen das alle 2 Sekunden wieder 100 HP hinzugefügt werdenb Vorraussetzung


    Aduty? Hier der Befehl:


    if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
    {
    if(AdminDuty[playerid] == 0)
    {
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Probe Supporter im Dienst!");
    SetPlayerColor(playerid,GRUEN);
    AdminDuty[playerid] = 1;
    Mod[playerid] = Create3DTextLabel("*Probe Supporter on Duty*",GRUEN,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Probe Supporter %s[ID:%d] ist nun im Dienst [Er ist grün markiert]*",sendername,playerid);
    SendClientMessageToAll(0x932200FF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] == 2)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Supporter im Dienst!");
    SetPlayerColor(playerid,GRUEN);
    AdminDuty[playerid] = 1;
    Mod[playerid] = Create3DTextLabel("*Supporter on Duty*",GRUEN,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Supporter %s[ID:%d] ist nun im Dienst [Er ist grün markiert]*",sendername,playerid);
    SendClientMessageToAll(0x932200FF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] == 3)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Moderator im Dienst!");
    SetPlayerColor(playerid,GRUEN);
    AdminDuty[playerid] = 1;
    Mod[playerid] = Create3DTextLabel("*Moderator on Duty*",GRUEN,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Moderator %s[ID:%d] ist nun im Dienst [Er ist grün markiert]*",sendername,playerid);
    SendClientMessageToAll(0x932200FF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] == 4)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Super-Moderator im Dienst!");
    SetPlayerColor(playerid,GELB);
    AdminDuty[playerid] = 1;
    Supermod[playerid] = Create3DTextLabel("*Super-Moderator on Duty*",GELB,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Supermod[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"*Super-Moderator %s[ID:%d] ist nun im Dienst [Er ist gelb markiert]*",sendername,playerid);
    SendClientMessageToAll(COLOR_RED, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] >=5)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Administrator im Dienst!");
    SetPlayerColor(playerid,0x0A00FFFF);
    AdminDuty[playerid] = 1;
    Admin[playerid] = Create3DTextLabel("*Administrator on Duty*",0x0A00FFFF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"Administrator %s[ID:%d] ist nun im Dienst [Er ist Blau markiert]*",sendername,playerid);
    SendClientMessageToAll(0x0A00FFFF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] >=6)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Server Manager im Dienst!");
    SetPlayerColor(playerid,0x0A00FFFF);
    AdminDuty[playerid] = 1;
    Admin[playerid] = Create3DTextLabel("*Server Manager on Duty*",0x0A00FFFF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"Server Manager %s[ID:%d] ist nun im Dienst [Er ist Blau markiert]*",sendername,playerid);
    SendClientMessageToAll(0x0A00FFFF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] >=7)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Communityleitung im Dienst!");
    SetPlayerColor(playerid,0x0A00FFFF);
    AdminDuty[playerid] = 1;
    Admin[playerid] = Create3DTextLabel("*Communityleitung on Duty*",0x0A00FFFF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"Communityleitung %s[ID:%d] ist nun im Dienst [Er ist Blau markiert]*",sendername,playerid);
    SendClientMessageToAll(0x0A00FFFF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] >=8)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Serverleitung im Dienst!");
    SetPlayerColor(playerid,0x0A00FFFF);
    AdminDuty[playerid] = 1;
    Admin[playerid] = Create3DTextLabel("*Serverleitung on Duty*",0x0A00FFFF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"Serverleitung %s[ID:%d] ist nun im Dienst [Er ist Blau markiert]*",sendername,playerid);
    SendClientMessageToAll(0x0A00FFFF, string);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    }
    if(AdminDuty[playerid] == 1)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun nichtmehr On Duty!");
    Delete3DTextLabel(Admin[playerid]);
    Delete3DTextLabel(Supermod[playerid]);
    Delete3DTextLabel(Mod[playerid]);
    Delete3DTextLabel(Supporter[playerid]);
    Delete3DTextLabel(Admin[playerid]);
    Delete3DTextLabel(Supermod[playerid]);
    Delete3DTextLabel(Mod[playerid]);
    Delete3DTextLabel(Supporter[playerid]);
    SetPlayerArmour(playerid, 0);
    AdminDuty[playerid] = 0;
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    }
    else
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR);
    }
    }
    return 1;
    }
    return 1;
    }

    Wie lösche ich dieses Jetpack Pickup wieder


    if(strcmp(cmd, "/jetpack",true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 7)
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x,y,z);
    CreatePickup(370,4,x,y,z,0);
    SendClientMessage(playerid,ROT,"Du hast dir erfolgreich ein Jetpack gespawnt.");
    }
    return 1;
    }

    ...


    "[11:43:51] Loaded.
    [11:43:51] Loaded 3 plugins.


    [11:43:51]
    [11:43:51] Filterscripts
    [11:43:51] ---------------
    [11:43:51] Loaded 0 filterscripts.


    [11:43:51] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
    [11:43:51] Pickups Max = 2048, Current Pickups = 22
    [11:43:51] _______________________________________
    [11:43:51] Das Script wurde Vollständig geladen!
    [11:43:51] German Reallife: LS/SF/LV
    [11:43:51] _______________________________________
    [11:43:51]
    [11:43:51] Number of vehicle models: 60
    Console input: gmx
    [11:45:16] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
    [11:45:16] Pickups Max = 2048, Current Pickups = 22
    [11:45:16] _______________________________________
    [11:45:16] Das Script wurde Vollständig geladen!
    [11:45:16] German Reallife: LS/SF/LV
    [11:45:16] _______________________________________
    [11:45:16]
    [11:45:16] Number of vehicle models: 60
    Console input: gmx
    [11:46:46] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
    [11:46:46] Pickups Max = 2048, Current Pickups = 22
    [11:46:46] _______________________________________
    [11:46:46] Das Script wurde Vollständig geladen!
    [11:46:46] German Reallife: LS/SF/LV
    [11:46:46] _______________________________________
    [11:46:46]
    [11:46:46] Number of vehicle models: 60


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3e-RC5, (C)2005-2012 SA-MP Team


    [11:47:50] filterscripts = "" (string)
    [11:47:50]
    [11:47:50] Server Plugins
    [11:47:50] --------------
    [11:47:50] Loading plugin: streamer
    [11:47:50]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [11:47:50] Loaded.
    [11:47:50] Loading plugin: audio
    [11:47:50]


    *** Audio Plugin v0.4 by Incognito loaded ***



    [11:47:50] Loaded.
    [11:47:50] Loading plugin: sscanf
    [11:47:50]


    [11:47:50] ===============================


    [11:47:50] sscanf plugin loaded.


    [11:47:50] (c) 2009 Alex "Y_Less" Cole


    [11:47:50] ===============================


    [11:47:50] Loaded.
    [11:47:50] Loaded 3 plugins.


    [11:47:50]
    [11:47:50] Filterscripts
    [11:47:50] ---------------
    [11:47:50] Loaded 0 filterscripts.


    [11:47:50] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
    [11:47:50] Pickups Max = 2048, Current Pickups = 22
    [11:47:50] _______________________________________
    [11:47:50] Das Script wurde Vollständig geladen!
    [11:47:50] German Reallife: LS/SF/LV
    [11:47:50] _______________________________________
    [11:47:50]
    [11:47:50] Number of vehicle models: 60
    "