Beiträge von Abgehn


    This ....



    #include <a_samp>
    #include <core>
    #include <float>
    static gTeam[MAX_PLAYERS];
    new gPlayerClass[MAX_PLAYERS];


    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLUE 0x0000BBAA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define TEAM_TERRORIST 1
    #define TEAM_COUNTER_TERRORIST 2



    // Round duration


    //new gRoundTime = 3600000; // 60 mins


    //new gRoundTime = 900000; //15 mins


    //new gRoundTime = 300000; // 5 mins




    //------------------------------------------------------------------------------


    main()
    {
    }


    //------------------------------------------------------------------------------


    public OnGameModeInit()
    {
    SetGameModeText("San Fierro TDM");
    SetTeamCount(2);
    SetWorldTime(12);
    AddPlayerClass(285,2776.2981,-2379.0464,16.2244,88.4118,16,3,4,1,22,22); // CT
    AddPlayerClass(258,2536.9382,-2535.7244,13.6250,268.8935,16,3,4,1,22,22); // T
    return 1;
    }




    //------------------------------------------------------------------------------




    public OnPlayerConnect(playerid)
    {
    GameTextForPlayer(playerid,"Counter Strike",2500,5);
    GivePlayerMoney(playerid, 2000);
    SetPlayerColor(playerid, COLOR_GREY);
    return 1;
    }




    //------------------------------------------------------------------------------




    public OnPlayerSpawn(playerid)
    {
    if(gTeam[playerid] == TEAM_TERRORIST)
    {
    SetPlayerColor(playerid,COLOR_RED); // Green
    }
    if(gTeam[playerid] == TEAM_COUNTER_TERRORIST)
    {
    SetPlayerColor(playerid,COLOR_GREEN); // Red
    }
    return 1;
    }




    //------------------------------------------------------------------------------




    public OnPlayerDeath(playerid, killerid, reason)
    {
    if(killerid == INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    } else {
    if(gTeam[killerid] != gTeam[playerid]) {
    // Valid kill
    SendDeathMessage(killerid,playerid,reason);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GivePlayerMoney(killerid, 1000);
    }
    else {
    //Team Killer!
    new warning[256];
    format(warning, sizeof(warning), "Du hast Teamkill Begangen, dir wurden 1000$ abgezogen.");
    SendClientMessage(killerid, 0xFFFF00AA, warning);
    SendDeathMessage(killerid,playerid,reason);
    GivePlayerMoney(killerid, -1000);
    SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
    }
    }
    return 1;
    }




    //------------------------------------------------------------------------------




    public SetupPlayerForClassSelection(playerid)
    {
    SetPlayerFacingAngle(playerid, 90.0);
    SetPlayerPos(playerid, 2715.2871,-2486.3831,29.1932);
    SetPlayerCameraPos(playerid, 2715.2393,-2492.1199,29.1932);
    SetPlayerCameraLookAt(playerid, 2715.2871,-2486.3831,29.1932);
    }




    //------------------------------------------------------------------------------




    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerClass(playerid, classid);
    SetupPlayerForClassSelection(playerid);
    gPlayerClass[playerid] = classid;
    switch (classid) {
    case 0:
    {
    GameTextForPlayer(playerid, "~g~Worker", 500, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~g~Pimp", 500, 3);
    }
    }
    return 1;
    }




    //------------------------------------------------------------------------------




    public GameModeExitFunc()
    {
    GameModeExit();
    return 1;
    }




    //------------------------------------------------------------------------------




    SetPlayerClass(playerid, classid) {


    if(classid == 0)
    {
    gTeam[playerid] = TEAM_TERRORIST;
    }
    else if(classid == 1)
    {
    gTeam[playerid] = TEAM_COUNTER_TERRORIST;
    }
    return 1;

    Ja das ist das hier


    #include <a_samp>
    #define FILTERSCRIPT


    new Text:RealClock,Timer;


    public OnFilterScriptInit()
    {
    RealClock = TextDrawCreate(547.000000,22.000000," ");
    TextDrawAlignment(RealClock,0);
    TextDrawBackgroundColor(RealClock,0x000000ff);
    TextDrawFont(RealClock,3);
    TextDrawLetterSize(RealClock,0.599999,2.299999);
    TextDrawColor(RealClock,0xffffffff);
    TextDrawSetOutline(RealClock,1);
    TextDrawSetProportional(RealClock,1);
    TextDrawSetShadow(RealClock,10);
    Timer = SetTimer("UpdateClock",300,1);
    return 1;
    }


    public OnFilterScriptExit()
    {
    KillTimer(Timer);
    TextDrawHideForAll(RealClock);
    TextDrawDestroy(RealClock);
    return 1;
    }


    forward UpdateClock();
    public UpdateClock()
    {
    new Hour,Minute,Sec,String[256];
    gettime(Hour,Minute,Sec);
    if(Hour<9 && Minute<9){format(String,sizeof(String),"0%d:0%d",Hour,Minute);}
    else if(Hour>9 && Minute<9){format(String,sizeof(String),"%d:0%d",Hour,Minute);}
    else if(Hour<9 && Minute>9){format(String,sizeof(String),"0%d:%d",Hour,Minute);}
    else{format(String,sizeof(String),"%d:%d",Hour,Minute);}
    TextDrawSetString(RealClock,String);
    SetWorldTime(Hour);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    TextDrawShowForPlayer(playerid,RealClock);
    return 1;
    }


    public OnPlayerDisconnect(playerid,reason)
    {
    TextDrawHideForPlayer(playerid,RealClock);
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    TextDrawHideForPlayer(playerid,RealClock);
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    TextDrawHideForPlayer(playerid,RealClock);
    return 1;
    }

    das is ne uhr^^

    wen ich mich nicht teusche


    new realtime = 1;


    Der rest unter public OnGameModeInit()


    if(!realtime)
    {
    SetWorldTime(wtime);
    }




    if (realtime)
    {
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    SetWorldTime(tmphour);
    }


    if (realtime)
    {
    SetWorldTime(tmphour);
    }
    }
    }



    {
    print("\n--------------------------------------");
    print(" Stunt Game Mod by keleg_Kelso");
    print("--------------------------------------\n");
    return 1;
    }

    unter

    PHP
    public OnPlayerCommandText(playerid, cmdtext[])


    Einfach das einfügen


    if(strcmp(cmdtext,"/respawncars",true)==0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 4) //admin level das man haben muss zum autos respawnen
    for(new v=0; v<MAX_VEHICLES; v++) {
    SetVehicleToRespawn(v); }
    return 1;
    }


    if(strcmp(cmdtext, "/kick", true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
    Kick(playerid,0xFFFFFF00);}
    else {
    SendClientMessage(playerid, 0x008A00FF, "Du hasst keine Rechte dazu!");
    }
    return 1;
    }


    Vlt das???



    wen nicht hier aus GF koppiert



    if(strcmp(cmd, "/kick", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /kick [playerid/PartOfName] [reason]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /kick [playerid/PartOfName] [reason]");
    return 1;
    }
    new year, month,day;
    getdate(year, month, day);
    format(string, sizeof(string), "AdminCmd: %s wurde von %s gekickt. Grund: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
    KickLog(string);
    format(string, sizeof(string), "AdminCmd: %s wurde von %s gekickt. Grund: %s", giveplayer, sendername, (result));
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    Kick(giveplayerid);
    return 1;
    }
    }
    }
    else
    {
    format(string, sizeof(string), " %d ist kein Aktiver Spieler.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    }
    }
    return 1;
    }

    if(strcmp(cmd, "/transfer", true) == 0 || strcmp(cmd, "/wiretransfer", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLevel] < 3)
    {
    SendClientMessage(playerid, COLOR_GRAD1, " You must be level 3 !");
    return 1;
    }
    if(PlayerInfo[playerid][pLocal] != 103)
    {
    SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /transfer [playerid/PartOfName] [amount]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /transfer [playerid/PartOfName] [amount]");
    return 1;
    }
    moneys = strval(tmp);
    if (IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    playermoney = PlayerInfo[playerid][pAccount] ;
    if (moneys > 0 && playermoney >= moneys)
    {
    PlayerInfo[playerid][pAccount] -= moneys;
    PlayerInfo[giveplayerid][pAccount] += moneys;
    format(string, sizeof(string), " You have transferd $%d to %s's account", moneys, giveplayer,giveplayerid);
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    format(string, sizeof(string), " You have recieved $%d to into your account from %s", moneys, sendername, playerid);
    SendClientMessage(giveplayerid, COLOR_GRAD1, string);
    format(string, sizeof(string), "%s transferd $%d to %s", sendername, moneys, giveplayer);
    if(moneys >= 500000)
    {
    ABroadCast(COLOR_YELLOW,string,1);
    }
    printf("%s", string);
    PayLog(string);
    PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount.");
    }
    }
    }
    else
    {
    format(string, sizeof(string), " %d is not an active player.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    }
    }
    return 1;
    }


    Das ein Bisschen umschreiben und fertich

    bei dem Zombi ding ist das ja ein object aber wo ist die object id und wie bringe ich das so cool zum laufen ich war afk 10min und war ihrgentwo mit dem zombi in der luft total geil :D



    aber sowas in rl script wäre toll wen ne kuh über die straße rennt oder so