Beiträge von Kin[G]BaLLeR

    public OnPlayerDeath(playerid, killerid, reason)
    {
    GivePlayerMoney(killerid, 5000);
    GivePlayerMoney(playerid, -1000);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    return 1;
    }


    Mach so ich glaub nicht das dieses SendDeathMessage was großes bringen soll

    public OnPlayerDeath(playerid, killerid, reason)
    {
    GivePlayerMoney(playerid, -500);
    SendClientMessage(playerid,FARBE,"Du wurdest umgebracht!Dir werden $500 abgezogen! ");//bei Farbe natürlich deine einsetzen
    GivePlayerMoney(killerid, +500);
    SendClientMessage(killerid,FARBE,"Du hast eine Person getötet,dafür bekommst du $500! ");//bei Farbe natürlich deine einsetzen
    return 1;
    }



    Ich hoffe das geht überhaupt :P


    Wenn es gehen sollte wird dem Killer die zweite Nachricht geschickt und die erste dem totem

    {
    if (strcmp("/copls", cmdtext, true) == 0)
    {
    gTeam[playerid] = TEAM_COPS;
    GameTextForPlayer(playerid,~b~"Du bist nun LSPD Cop",10000,1);
    SendClientMessage(playerid,BLAU, "Willkommen im Dienst");
    SendClientMessage(playerid,BLAU, "Für Hilfe gebe /jobpd ein.");
    SetPlayerPos(playerid,256.7657,79.7133,1003.6406);

    return 1;
    }



    hast was vergessen :D

    forward payday();



    public payday ()
    {
    new PlayerScore = GetPlayerScore(playerid);
    if(PlayerScore < 0)
    {
    GivePlayerMoney(playerid,5000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 0-1");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $5000");
    return 1;
    }
    else if(PlayerScore > 2)
    {
    GivePlayerMoney(playerid,1000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 2-3");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $10000");
    return 1;
    }
    else if(PlayerScore > 4)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,25000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 5-6");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $25000");
    return 1;
    }
    else if(PlayerScore > 7)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,50000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 7-9");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $50000");
    return 1;
    }
    else if(PlayerScore > 10)
    {
    SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    GivePlayerMoney(playerid,100000);
    GameTextForPlayer(playerid,"Payday",1500,6);
    GameTextForPlayer(playerid,"~w~Zahltag",1500,6);
    SendClientMessage(playerid,0xFFFF00FF,"-----Payday-----");
    SendClientMessage(playerid,0xFFFF00FF,"Score: 10-~");
    SendClientMessage(playerid,0xFFFF00FF,"Verdienst: $100000");
    return 1;
    }
    return 1;
    }



    müsste doch eigentlich gehen kann gerade schlecht testen :D

    #define team_polizei 1




    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/waffen", cmdtext, true, 10) == 0)
    {
    if(PlayerToPoint(25.0,playerid,1526.39542,-1660.0612,6.2188))
    {
    if(gTeam[playerid] == team_polizei)
    {
    GivePlayerWeapon(playerid, 4, 1);
    GivePlayerWeapon(playerid, 24, 999);
    GivePlayerWeapon(playerid, 31, 999);
    SendClientMessage(playerid, COLOR_BLUE, "Du hast jetzt Waffen aufgenommen");
    }
    return 1;
    }
    }
    return 0;
    }

    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/waffen", cmdtext, true, 10) == 0)
    {
    if(PlayerToPoint(25.0,playerid,1526.39542,-1660.0612,6.2188))
    {
    if(gTeam[playerid] == polizei) // muss des net Team_polizei , sein? oder wenigstens die gTeam id
    {
    GivePlayerWeapon(playerid, 4, 1);
    GivePlayerWeapon(playerid, 24, 999);
    GivePlayerWeapon(playerid, 31, 999);
    SendClientMessage(playerid, COLOR_BLUE, "Du hast jetzt Waffen aufgenommen");
    }
    return 1;
    }
    }
    return 0;
    }

    Heyho gibt es ein Script ählich wie gf mit wenig Funktionen bzw. nur ADM System + Fraks + Häuser oder so?


    Brauche kein ganzes da ich eigenes machen will und dann vlt. realesen :P