Beiträge von W3STSID3

    hii leute ich brauche hilfe bei diesem script
    ich hab mir mal ein haussystem runter geladen von eng forum
    weiß ned wie ich häuser einfüge soll
    da steht man soll Nutze: /nhaus [kosten] [score] [typ] [virtual world]
    ich hab es gemacht aber passiert nichts


    hier das link dazu


    LINK


    könnt ihr helfen ??


    danke schon mal im voraus

    hii leute ich suche ein uhr script


    wie bei Reallife wenn es dunkel ist ist da auch dunkel
    mit Textdraw wo mann die uhr sehen kann oben rechts


    und wo ich es leicht ins gamemode rein bauen kann


    danke schon mal im voraus
    8)

    hallo leute und zwar
    ich hab ein commmand filterscript vom web runter geladen
    und da sind 3 deathmaths aber da gehe die player vom deathmatch immer raus was kann ich machen das sie drinnen bleiben


    #include <a_samp>


    #define FILTERSCRIPT


    #define COLOR_LIGHTRED 0xFF6347AA
    #define COLOR_TEMP 0xFFFFFFAA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_DARKGREEN 0x00721CFF
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_ORANGE 0xFF8000FF
    #define COLOR_CREAM 0xF8BD6DFF
    #define COLOR_SILVER 0xC0C0C0FF
    #define COLOR_TEAL 0x00FFFFFF
    #define COLOR_BERG 0x804040FF
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_SPEW 0x808040FF
    #define COLOR_BLUE 0x0000FFFF
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_PURPLE 0x400080FF
    #define COLOR_COPPER 0x804000FF
    #define COLOR_RAREZ 0x06A7B9FF
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_DARKRED 0xAA3333AA


    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


    #if defined FILTERSCRIPT


    new string[256];
    new string4[64];


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Filterscript (Commands) by Markus");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print("Filterscript (Commands) by TFKilla");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


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


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


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


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


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


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {


    dcmd(resetweapons,12,cmdtext);

    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Alle Commands:");
    SendClientMessage(playerid,COLOR_RED,"/heal , /kill");
    SendClientMessage(playerid,COLOR_RED,"/buyarmour(/ba) , /lock , /unlock");
    SendClientMessage(playerid,COLOR_RED,"/parachute ");
    SendClientMessage(playerid,COLOR_RED,"/dm1 , /dm2 , /dm3 , /credits");
    SendClientMessage(playerid,COLOR_RED,"Für Rcon-Admins: /resetweapons [id]");
    return 1;
    }

    if (strcmp("/credits", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Dieser Filterscript wurde von Markus erstellt!");
    return 1;
    }


    if (strcmp("/heal", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid,100.00);
    SendClientMessage(playerid,COLOR_RED,"Du hast dich geheilt!");
    return 1;
    }

    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid,0);
    SendClientMessage(playerid,COLOR_RED,"Selbstmord ist keine Losung, aber ein Ausweg!");
    return 1;
    }

    if(strcmp(cmdtext, "/buyarmour", true) == 0 || strcmp(cmdtext, "/ba", true) == 0)
    {
    if (GetPlayerMoney(playerid) > 1250)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s hat sich Armour gekauft! (/buyarmour)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerArmour(playerid, 100);
    GivePlayerMoney(playerid, -1250);
    SendClientMessage(playerid,0x33AA33AA,"Du hast dir fur 1250$ Armour gekauft.");
    }
    else
    {
    SendClientMessage(playerid,0xAA3333AA,"Du hast nicht genugend Geld!");
    }
    return 1;
    }

    if (strcmp("/lock", cmdtext, true, 10) == 0)
    {
    if (GetPlayerState(playerid) == 2)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
    }
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, COLOR_YELLOW, "Auto abgeschlossen!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du fährst das Auto nicht!");
    }
    return 1;
    }


    if (strcmp("/unlock", cmdtext, true, 10) == 0)
    {
    if (GetPlayerState(playerid) == 2)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
    }
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, COLOR_YELLOW, "Auto aufgeschlossen!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du fahrst das Auto nicht!");
    }
    return 1;
    }

    if (strcmp(cmdtext, "/parachute", true)==0)
    {
    GivePlayerWeapon(playerid, 46, 1);
    SendClientMessage(playerid,COLOR_RED,"Du hast einen Fallschirm erhalten!");
    return 1;
    }

    if(strcmp(cmdtext,"/fixcar",true) == 0)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Auto repariert!");
    SetVehicleHealth(GetPlayerVehicleID(playerid),1250.0);
    return 1;
    }


    if (strcmp("/backcar", cmdtext, true, 5) == 0)
    {
    if (IsPlayerInAnyVehicle(playerid))
    {
    new veh = GetPlayerVehicleID(playerid); SetVehicleToRespawn(veh);
    SendClientMessage(playerid, COLOR_GREEN, "Auto zur Spawnposition zurück gesetzt!");
    return 1;
    }
    }

    if(strcmp(cmdtext,"/dm1",true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s ist der DM1 beigetreten! (/dm1)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerPos(playerid,-2119.2554,-194.4700,35.3203);
    ResetPlayerWeapons(playerid);
    GameTextForPlayer(playerid,"Willkommen zur Deathmathzone 1",4000,6);
    GivePlayerWeapon(playerid, 0, 0000);
    GivePlayerWeapon(playerid, 26, 8000);
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 000.0);
    return 1;
    }


    if(strcmp(cmdtext,"/dm2",true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s ist der DM2 beigetreten! (/dm2)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerPos(playerid,2208.0815,2189.2583,103.8786);
    ResetPlayerWeapons(playerid);
    GameTextForPlayer(playerid,"Willkommen zur Molotov Deathmatchzone 2",4000,6);
    GivePlayerWeapon(playerid, 0, 0000);
    GivePlayerWeapon(playerid, 28, 8000);
    GivePlayerWeapon(playerid, 18, 8000);
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 100.0);
    return 1;
    }

    if(strcmp(cmdtext,"/dm3",true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s ist der DM3 beigetreten! (/dm3)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerPos(playerid,1383.6771,2185.6121,11.0234);
    ResetPlayerWeapons(playerid);
    GameTextForPlayer(playerid,"Willkommen zur Deathmatchzone 3",4000,6);
    GivePlayerWeapon(playerid, 0, 0000);
    GivePlayerWeapon(playerid, 26, 4000);
    GivePlayerWeapon(playerid, 00, 0000);
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 100.0);
    return 1;
    }


    return 0;
    }


    dcmd_resetweapons(playerid, params[])
    {
    new name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
    new playa = strval(params);
    if(!strlen(params))
    {
    SendClientMessage(playerid,COLOR_RED,"Tippe: /resetweapons [ID]");
    return 1;
    }
    if(IsPlayerConnected(playa))
    {
    if(IsPlayerAdmin(playerid))
    {
    ResetPlayerWeapons(playa);


    GetPlayerName(playerid, name, sizeof name);
    GetPlayerName(playa,name2, sizeof name2);
    format(string,sizeof string, "%s hat deine Waffen gelöscht!",name);
    SendClientMessage(playa,COLOR_RED,string);
    format(string4,sizeof string4,"Du hast %s Waffen entfernt!",name2);
    SendClientMessage(playerid,COLOR_RED,string4);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Rcon-Administrator!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Player ist nicht online");
    return 1;
    }
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    die häuser sieht mann auf der karte nicht fahr einfach in ls rum da siehst du dann welche vor haus sind dan grüne checkpoints

    z.b. sooo ist es bei mir


    Zitat

    [KIS]W3STSID3 [KIS]TFKilla [KIS]RoNNeX [KIS]Iron [KIS]BIG [KIS]Pac [KIS]YaSin [KIS]Okan BaDBoY[KIS] [KIS]Barzhat [KISt]50Cent

    immer leertaste machen nach ein name


    mfg


    massaka

    oder sooo unter health und geld anzeige


    ganz oben
    // Textdraw
    new Text:Textdraw0;
    new Text:Werbung;
    bei OnPlayerConnect
    public OnPlayerConnect(playerid) {
    Werbung = TextDrawCreate(499.000000,104.000000,"kisclan.plusboard.de");
    TextDrawAlignment(Werbung,0);
    TextDrawBackgroundColor(Werbung,0x000000ff);
    TextDrawFont(Werbung,3);
    TextDrawLetterSize(Werbung,0.299999,1.000000);
    TextDrawColor(Werbung,0xffffffff);
    TextDrawSetOutline(Werbung,1);
    TextDrawSetProportional(Werbung,1);
    TextDrawSetShadow(Werbung,1);
    TextDrawShowForPlayer(playerid,Werbung);
    return 1;
    }

    also ich habs so und bei mir geht es


    GameTextForPlayer(playerid,"RACE STUNT DEATHMATCH JOB MISSION",7000,5);
    SendClientMessage(playerid,0x33AA33AA,"***Willkomen um dich einzuloggen benutze /LOGIN [password] oder| zu registrieren /REGISTER [password]");
    SendClientMessage(playerid,0x33AA33AA,"***[KIS]-Server Stunt|Deathmatch|Mission|Race|Job [German][0.2x] fur befehle schreib /cmds");
    SendClientMessage(playerid,0x33AA33AA,"***Homepage:>>>WwW.kisclan.plusboard.De<<<");
    SendClientMessage(playerid,0x33AA33AA,"***Teamspeak:81.89.111.154:9999");
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s Betritt den Server.", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
    if(fexist("clantag.txt")) {
    new name[16];
    GetPlayerName(playerid,name,sizeof(name));
    if(strfind(name,"[KIS]",true)==0 || strfind(name,"]KIS[",true)==0) {
    new File:gla=fopen("clantag.txt",io_read), s[128], sn=strlen(name), darf;
    while(fread(gla,s)) {
    for(new i=0, j=strlen(s); i<j; i++) {
    if(!i) {
    if(strcmp(s,name,true,sn)==0) {
    darf=1;
    i=j; }}
    else if(s[i]==' ') {
    if(strcmp(s,name,true,sn)==0) {
    darf=1;
    i=j; }}}}
    fclose(gla);
    if(!darf) { Kick(playerid); }}}
    return 1;
    }


    nimm das hier leicht brauchst garnichts machen kein bugs



    #include <a_samp>


    #define FILTERSCRIPT


    #if defined FILTERSCRIPT
    #define COLOR_GREY 0xBEBEBEAA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_GRAD5 0xE3E3E3FF
    #define COLOR_GRAD1 0xB4B5B7FF


    forward ShowStats(playerid,targetid);
    forward OnPlayerUpdate(playerid);
    forward Encrypt(string[]);
    forward OnPlayerLogin(playerid,const string[]);


    enum pInfo
    {
    pPassword[128],
    pKills,
    pDeaths,
    pCash,
    };


    new PlayerInfo[MAX_PLAYERS][pInfo];
    new gPlayerLogged[MAX_PLAYERS];
    new gPlayerAccount[MAX_PLAYERS];



    public OnFilterScriptInit()
    {
    print("\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    print("Login/Register Filterscript by [KIS]Clan");
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


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


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    OnPlayerUpdate(playerid);
    gPlayerLogged[playerid] = 0;
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    new kills = PlayerInfo[playerid][pKills];
    SetPlayerScore(playerid, kills);
    new Float:Health;
    GetPlayerHealth(playerid, Health);
    if(Health == 0.0)
    {
    PlayerInfo[playerid][pDeaths] += 3;
    }
    GivePlayerMoney(killerid,1000);
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 3;
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    new tmp[256];
    new playername[MAX_PLAYER_NAME];
    if (strcmp(cmd, "/login", true) ==0 )
    {
    if(IsPlayerConnected(playerid))
    {
    new tmppass[64];
    if(gPlayerLogged[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist eingeloggt|You are already logged in");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREY, "SERVER:/login [password]");
    return 1;
    }
    strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    Encrypt(tmppass);
    OnPlayerLogin(playerid,tmppass);
    }
    return 1;
    }
    if (strcmp(cmd, "/register", true)==0)
    {
    new string[265];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREY, "SERVER: /register [password]");
    return 1;
    }
    if (gPlayerAccount[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Name ist bereits registriert|That name is already registered");
    return 1;
    }


    strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
    Encrypt(PlayerInfo[playerid][pPassword]);
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s.cer", playername);
    new File: file = fopen(string, io_read);
    if (file)
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Name ist bereits registriert|That name is already registered");
    fclose(file);
    return 1;
    }
    new File:hFile;
    hFile = fopen(string, io_append);
    new var[32];//
    format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    fclose(hFile);
    SendClientMessage(playerid, COLOR_WHITE, "Erfolgreich registriert|Succesfully Registered");
    SendClientMessage(playerid, COLOR_WHITE, "Wenn Sie das nächste Mal Connecten, geben Sie / login <password> zum anmelden|Next time you connect, type /login <password> to log in.");
    OnPlayerLogin(playerid,PlayerInfo[playerid][pPassword]);
    return 1;
    }
    if (strcmp(cmd, "/stats", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (gPlayerLogged[playerid] != 0)
    {
    ShowStats(playerid,playerid);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht eingeloggt|You are not Logged in !");
    }
    }
    return 1;
    }
    return 0;
    }


    public Encrypt(string[])
    {
    for(new x=0; x < strlen(string); x++)
    {
    string[x] += (3^x) * (x % 15);
    if(string[x] > (0xff))
    {
    string[x] -= 64;
    }
    }
    return 1;
    }



    public OnPlayerLogin(playerid,const string[])
    {
    new pname2[MAX_PLAYER_NAME];
    new pname3[MAX_PLAYER_NAME];
    new string2[64];
    new string3[128];
    GetPlayerName(playerid, pname2, sizeof(pname2));
    format(string2, sizeof(string2), "%s.cer", pname2);
    new File: UserFile = fopen(string2, io_read);


    if (UserFile)
    {
    new valtmp[128];
    fread(UserFile, valtmp);strmid(PlayerInfo[playerid][pPassword], valtmp, 0, strlen(valtmp)-1, 255);


    if ((strcmp(PlayerInfo[playerid][pPassword], string, true, strlen(valtmp)-1) == 0))
    {
    new key[128],val[128];
    new Data[128];
    while(fread(UserFile,Data,sizeof(Data)))
    {
    key = ini_GetKey(Data);
    if( strcmp( key , "Kills|Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
    if( strcmp( key , "Tode|Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
    if( strcmp( key , "Geld|Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    }
    fclose(UserFile);
    gPlayerLogged[playerid] = 1;
    gPlayerAccount[playerid] = 1;
    new kills = PlayerInfo[playerid][pKills];
    SetPlayerScore(playerid, kills);
    GetPlayerName(playerid, pname3, sizeof(pname3));
    format(string3, sizeof(string3), "Welcome %s, you have been succesfully logged in!", pname3);
    SendClientMessage(playerid, COLOR_WHITE,string3);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Passwort stimmt nicht mit Ihrem Namen|Password does not match your name");
    fclose(UserFile);
    }
    }
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid])
    {
    new string3[32];
    new pname3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname3, sizeof(pname3));
    format(string3, sizeof(string3), "%s.cer", pname3);
    new File: pFile = fopen(string3, io_write);
    if (pFile)
    {
    new var[32];
    format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(pFile, var);
    fclose(pFile);
    new File: hFile = fopen(string3, io_append);
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    format(var, 32, "Kills|Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Tode|Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    format(var, 32, "Geld|Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    fclose(hFile);
    }
    }
    }
    return 1;
    }


    stock ini_GetKey( line[] )
    {
    new keyRes[128];
    keyRes[0] = 0;
    if ( strfind( line , "=" , true ) == -1 ) return keyRes;
    strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
    return keyRes;
    }


    stock ini_GetValue( line[] )
    {
    new valRes[128];
    valRes[0]=0;
    if ( strfind( line , "=" , true ) == -1 ) return valRes;
    strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
    return valRes;
    }



    strtok(const string[], &index)
    {
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
    result[index - offset] = string[index];
    index++;
    }
    result[index - offset] = EOS;
    return result;
    }


    public ShowStats(playerid,targetid)
    {
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new cash = GetPlayerMoney(targetid);
    new deaths = PlayerInfo[targetid][pDeaths];
    new kills = PlayerInfo[targetid][pKills];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(targetid, px, py, pz);
    new coordsstring[256];
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Kills|Kills:[%d] Tode|Deaths:[%d] Geld|Cash:[$%d]",kills,deaths,cash);
    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    }
    }


    #endif

    hii leute ich hab mal aus dem web das hier runtergeladen
    und die spieler gehen raus aus dm wie kann ich es machen das sie nicht raus gehen
    danke schon mal im voraus



    #include <a_samp>


    #define FILTERSCRIPT


    #define COLOR_LIGHTRED 0xFF6347AA
    #define COLOR_TEMP 0xFFFFFFAA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_DARKGREEN 0x00721CFF
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_ORANGE 0xFF8000FF
    #define COLOR_CREAM 0xF8BD6DFF
    #define COLOR_SILVER 0xC0C0C0FF
    #define COLOR_TEAL 0x00FFFFFF
    #define COLOR_BERG 0x804040FF
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_SPEW 0x808040FF
    #define COLOR_BLUE 0x0000FFFF
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_PURPLE 0x400080FF
    #define COLOR_COPPER 0x804000FF
    #define COLOR_RAREZ 0x06A7B9FF
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_DARKRED 0xAA3333AA


    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


    #if defined FILTERSCRIPT


    new string[256];
    new string4[64];


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Filterscript (Commands) by Markus");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print("Filterscript (Commands) by Markus");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


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


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


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


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


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


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {


    dcmd(resetweapons,12,cmdtext);

    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Alle Commands:");
    SendClientMessage(playerid,COLOR_RED,"/heal , /kill");
    SendClientMessage(playerid,COLOR_RED,"/buyarmour(/ba) , /lock , /unlock");
    SendClientMessage(playerid,COLOR_RED,"/parachute ");
    SendClientMessage(playerid,COLOR_RED,"/dm1 , /dm2 , /credits");
    SendClientMessage(playerid,COLOR_RED,"Für Rcon-Admins: /resetweapons [id]");
    return 1;
    }

    if (strcmp("/credits", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Dieser Filterscript wurde von Markus erstellt!");
    return 1;
    }


    if (strcmp("/heal", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid,100.00);
    SendClientMessage(playerid,COLOR_RED,"Du hast dich geheilt!");
    return 1;
    }

    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid,0);
    SendClientMessage(playerid,COLOR_RED,"Selbstmord ist keine Losung, aber ein Ausweg!");
    return 1;
    }

    if(strcmp(cmdtext, "/buyarmour", true) == 0 || strcmp(cmdtext, "/ba", true) == 0)
    {
    if (GetPlayerMoney(playerid) > 1250)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s hat sich Armour gekauft! (/buyarmour)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerArmour(playerid, 100);
    GivePlayerMoney(playerid, -1250);
    SendClientMessage(playerid,0x33AA33AA,"Du hast dir fur 1250$ Armour gekauft.");
    }
    else
    {
    SendClientMessage(playerid,0xAA3333AA,"Du hast nicht genugend Geld!");
    }
    return 1;
    }

    if (strcmp("/lock", cmdtext, true, 10) == 0)
    {
    if (GetPlayerState(playerid) == 2)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
    }
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, COLOR_YELLOW, "Auto abgeschlossen!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du fährst das Auto nicht!");
    }
    return 1;
    }


    if (strcmp("/unlock", cmdtext, true, 10) == 0)
    {
    if (GetPlayerState(playerid) == 2)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
    }
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, COLOR_YELLOW, "Auto aufgeschlossen!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du fahrst das Auto nicht!");
    }
    return 1;
    }

    if (strcmp(cmdtext, "/parachute", true)==0)
    {
    GivePlayerWeapon(playerid, 46, 1);
    SendClientMessage(playerid,COLOR_RED,"Du hast einen Fallschirm erhalten!");
    return 1;
    }

    if(strcmp(cmdtext,"/fixcar",true) == 0)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Auto repariert!");
    SetVehicleHealth(GetPlayerVehicleID(playerid),1250.0);
    return 1;
    }


    if (strcmp("/backcar", cmdtext, true, 5) == 0)
    {
    if (IsPlayerInAnyVehicle(playerid))
    {
    new veh = GetPlayerVehicleID(playerid); SetVehicleToRespawn(veh);
    SendClientMessage(playerid, COLOR_GREEN, "Auto zur Spawnposition zurück gesetzt!");
    return 1;
    }
    }

    if(strcmp(cmdtext,"/dm1",true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s ist der DM1 beigetreten! (/dm1)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerPos(playerid,-2119.2554,-194.4700,35.3203);
    ResetPlayerWeapons(playerid);
    GameTextForPlayer(playerid,"Willkommen zur Deathmathzone 1",4000,6);
    GivePlayerWeapon(playerid, 26, 8000);
    GivePlayerWeapon(playerid, 32, 8000);
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 100.0);
    return 1;
    }


    if(strcmp(cmdtext,"/dm2",true)==0)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s ist der DM2 beigetreten! (/dm2)", name);
    SendClientMessageToAll(0xAA3333AA, string);
    SetPlayerPos(playerid,2208.0815,2189.2583,103.8786);
    ResetPlayerWeapons(playerid);
    GameTextForPlayer(playerid,"Willkommen zur Deathmatchzone 2",4000,6);
    GivePlayerWeapon(playerid, 26, 8000);
    GivePlayerWeapon(playerid, 32, 8000);
    SetPlayerHealth(playerid, 100.0);
    SetPlayerArmour(playerid, 100.0);
    return 1;
    }


    return 0;
    }


    dcmd_resetweapons(playerid, params[])
    {
    new name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
    new playa = strval(params);
    if(!strlen(params))
    {
    SendClientMessage(playerid,COLOR_RED,"Tippe: /resetweapons [ID]");
    return 1;
    }
    if(IsPlayerConnected(playa))
    {
    if(IsPlayerAdmin(playerid))
    {
    ResetPlayerWeapons(playa);


    GetPlayerName(playerid, name, sizeof name);
    GetPlayerName(playa,name2, sizeof name2);
    format(string,sizeof string, "%s hat deine Waffen gelöscht!",name);
    SendClientMessage(playa,COLOR_RED,string);
    format(string4,sizeof string4,"Du hast %s Waffen entfernt!",name2);
    SendClientMessage(playerid,COLOR_RED,string4);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Rcon-Administrator!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Player ist nicht online");
    return 1;
    }
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }