Beiträge von .realyamamoto

    Hey,


    Wie kann ich machen das wenn man /veh macht das Fahrzeug immer Color 3 ist?


    if(strcmp(cmd, "/veh", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] < 1)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Admin!");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /veh [carid] [color1] [color2]");
    return 1;
    }
    new car;
    car = strval(tmp);
    if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "Auto Nummer nicht weniger als 400 oder höher als 611 sein !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /veh [carid] [color1] [color2]");
    return 1;
    }
    new color1;
    color1 = strval(tmp);
    if(color1 < 0 || color1 > 252) { SendClientMessage(playerid, COLOR_GREY, "Nicht Weniger als 0 oder höher 252 !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /veh [carid] [color1] [color2]");
    return 1;
    }
    new color2;
    color2 = strval(tmp);
    if(color2 < 0 || color2 > 252) { SendClientMessage(playerid, COLOR_GREY, "Nicht weniger als 0 oder höher als 252!"); return 1; }
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, -1);
    SetVehicleNumberPlate(carid, "{009900}R{FF0000}G{0000FF}R {0000FF}Event");
    CreatedCars[CreatedCar] = carid;
    CreatedCar++;
    PutPlayerInVehicle(playerid,carid,0);
    // Gas[carid] = GetGasMax(car);
    format(string, sizeof(string), "Auto mit der ID %d hergestellt.", carid);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    return 1;
    }

    Also wie muss ich das dort eingeben bei FTP-Pfad ( Nur wenn FTP :( muss ich dort die scriptfiles angeben oder einfach der Hauptordner wo die Ordner gamemodes, scriptfiles, includes etc. zu sehen sind?


    Das hier kommt wenn ich diesen Pfad eingebe: scriptfiles/Accounts


    Spoiler anzeigen
    Hinweis: CP-Authenfizierung am entfernten Rechner fehlgeschlagen

    Also ich möchte das man 999999999999hp haben kann wegen /god und man soll die Weapon ID 43 erlauben also haben dürfen.... ich habe es dort raus genommen man wird aber trotzdem gebannt wenn man die Weapon ID 43 hat und /god geht auch nicht der Code vom M_Bot


    #define M_Bot_BOT_NAME "[SERVERGUARD]"#define M_BOT_COLOR 0xFF6347AA


    |+++++++++++++++++++++++++++++++++++++++++++++++++++++||+++++++++ Maercells AntiCheat-Bot © 2009 ++++++++++||++++++++++++++++++++++ v1.1 +++++++++++++++++++++++||+++++++++++++++++++++++++++++++++++++++++++++++++++++||+++++++++++++++++++++++++++++++++++++++++++++++++++++|


    native SendClientMessageToAdmins(color,message[]);native FreezePlayer(playerid);native UnFreezePlayer(playerid);native FreezeAll();native UnFreezeAll();native GetName(playerid);native GetIP(playerid);native GetWeaponSlot(wid);native GetVehicleDriver(vehicleid);native M_Kick(playerid);native M_Ban(playerid);native M_BanEx(playerid,reason[]);native M_Log(string[]):native M_GivePlayerWeapon(playerid,weapon,ammo);native M_ResetPlayerWeapons(playerid);native M_GetPlayerMoney(playerid);native M_ResetPlayerMoney(playerid);native M_GivePlayerMoney(playerid,summe);native M_SetPlayerMoney(playerid,summe);native M_GivePlayerHealth(playerid,Float:health);native M_GivePlayerArmour(playerid,Float:armour);native M_SetPlayerPos(playerid,Float:Xpos,Float:Ypos,Float:Zpos,Float:Angle); // Spielerteleport ( + Winkel/Angle)=> Muss nicht dabei seinnative M_SetVehiclePos(playerid,Float:Xpos,Float:Ypos,Float:Zpos,Float:Angle); // Autoteleport ( + Winkel/Angle)=> Muss nicht dabei sein
    native EnableM_Bot();native M_OnPlayerSpawn(playerid); native M_OnPlayerConnect(playerid);native M_OnPlayerDeath(playerid,killerid,reason);native M_OnPlayerUpdate(playerid);native M_OnPlayerCommandText(playerid,cmdtext[]);



    forward KickHim(playerid);forward BanHim(playerid);forward BanHimEx(playerid,reason[]);forward Check();forward CheckIPFromList(playerid);forward EnableChecking(playerid);forward EnablePingWarnAgain(playerid);forward AFKOn(playerid);


    enum SysInfo{ PMoney, PWeapon[13], PAmmo[13], PLastVehicleID, PLastInterior, PInactiveSeconds, PCheckHighPing, PHighPingWarns, PIPWarns, PBadWordWarns, PAFK, PAFKTimer, Float:PHealth, Float:PArmour, Float:PXpos, Float:PYpos, Float:PZpos, Float:PXpos2, Float:PYpos2, Float:PZpos2, PFrozen, PSpawned, PCheck}
    new M_Bot[MAX_PLAYERS][SysInfo];
    new BanWeaponIDs[] = {35,36,37,38,39,40,44,45};
    new BanClanTags[][] = {"[LoH]","[FoD]","[LoG]"};
    new BanNames[][] = {"Suppenhuhn","Fabi","MiniYoda","Jude","Fick","Kack","scheiss"};
    new BadWords[][] = {"Fick","Fresse","Hurensohn","Huso","Schnauze","Fotze","Wixxer","Wichser","Kanacke","Jude","Arsch","Hure","Nigger","verpiss","Mistgeburt","Fotze","Missgeburt","Hure","Bastard","Noob","Drecks Server};
    new Float:GettedHealth, Float:GettedArmour, AllFrozen, MaxPing = 300, MoneySpam[MAX_PLAYERS];


    public EnableChecking(playerid){ M_Bot[playerid][PCheck] = 1; return 1;}
    public EnablePingWarnAgain(playerid){ M_Bot[playerid][PCheckHighPing] = 1; return 1;}
    public AFKOn(playerid){ if(IsPlayerConnected(playerid) && M_Bot[playerid][PAFK] == 0) { new string[128]; format(string,sizeof string,"*~ [AFK] %s ist in den AFK-Modus gegangen! /afklist ",GetName(playerid)); SendClientMessageToAll(0xAFAFAFAA,string); M_Bot[playerid][PAFK] = 1; FreezePlayer(playerid); KillTimer(M_Bot[playerid][PAFKTimer]); } return 1;}
    // ====================================================================================================================
    stock SendClientMessageToAdmins(color,message[]){ for(new i = 0; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i) && IsAnAdmin(i)) { SendClientMessage(i,color,message); } }}


    stock FreezePlayer(playerid){ TogglePlayerControllable(playerid,false); M_Bot[playerid][PFrozen] = 1;}


    stock UnFreezePlayer(playerid){ TogglePlayerControllable(playerid,true); M_Bot[playerid][PFrozen] = 0;}


    stock FreezeAll(){ for(new i = 0; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { TogglePlayerControllable(i,false); AllFrozen = 1; } }}
    stock UnFreezeAll(){ for(new i = 0; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { TogglePlayerControllable(i,true); AllFrozen = 0; } }}
    stock GetName(playerid){ new getthename[MAX_PLAYER_NAME]; GetPlayerName(playerid,getthename,sizeof(getthename)); return getthename;}
    stock GetIP(playerid){ new gettheip[15]; GetPlayerIp(playerid,gettheip,sizeof(gettheip)); return gettheip;}


    stock M_Kick(playerid){ SetTimerEx("KickHim",100,0,"d",playerid);}
    public KickHim(playerid){ Kick(playerid); return 1;}


    stock M_Ban(playerid){ SetTimerEx("BanHim",100,0,"d",playerid);}
    public BanHim(playerid){ Ban(playerid); return 1;}


    stock M_BanEx(playerid,reason[]){ SetTimerEx("BanHimEx",100,0,"ds",playerid,reason);}
    public BanHimEx(playerid,reason[]){ BanEx(playerid,reason); return 1;}
    stock GetVehicleDriver(vehicleid){ for(new i = 0; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(i) == vehicleid) { return i; } } return -1;}


    stock M_WriteIPToBlacklist(ip[]){ new File:BLACKLISTFILE; if(!fexist("/M_Bot/M_Black.cfg")) { BLACKLISTFILE = fopen("/M_Bot/M_Black.cfg",io_write); } else { BLACKLISTFILE = fopen("/M_Bot/M_Black.cfg",io_append); } if(BLACKLISTFILE) { new string[20]; format(string,sizeof(string),"%s\n",ip); fwrite(BLACKLISTFILE,string); } fclose(BLACKLISTFILE);}
    stock M_Log(string[]){ new File:logfile, mhour, mminute, msecond, myear, mmonth, mday; if(!fexist("/M_Bot/M_Log.txt")) { logfile = fopen("/M_Bot/M_Log.txt",io_write); } else { logfile = fopen("/M_Bot/M_Log.txt",io_append); } gettime(mhour,mminute,msecond); getdate(myear,mmonth,mday); format(string,(strlen(string)+32),"Logged %02d.%02d.%d %d:%d:%d: %s\n",mday,mmonth,myear,mhour,mminute,msecond,string); fwrite(logfile,string); fclose(logfile);}


    stock M_PutPlayerInVehicle(playerid,vehicleid,seatid){ GetVehiclePos(vehicleid,M_Bot[playerid][PXpos],M_Bot[playerid][PYpos],M_Bot[playerid][PZpos]); PutPlayerInVehicle(playerid,vehicleid,seatid);}
    stock M_SetPlayerPos(playerid,Float:Xpos,Float:Ypos,Float:Zpos,Float:Angle = -1.0){ M_Bot[playerid][PXpos] = Xpos; M_Bot[playerid][PYpos] = Ypos; M_Bot[playerid][PZpos] = Zpos; SetPlayerPos(playerid,Xpos,Ypos,Zpos); if(Angle != -1.0) { SetPlayerFacingAngle(playerid,Angle); }}
    stock M_SetVehiclePos(vehicleid,Float:Xpos,Float:Ypos,Float:Zpos,Float:Angle = -1.0){ new playerid = GetVehicleDriver(vehicleid); if(playerid != -1) { M_Bot[playerid][PXpos] = Xpos; M_Bot[playerid][PYpos] = Ypos; M_Bot[playerid][PZpos] = Zpos; } SetVehiclePos(vehicleid,Xpos,Ypos,Zpos); if(Angle != -1.0) { SetVehicleZAngle(vehicleid,Angle); } return 1; }
    stock M_GivePlayerWeapon(playerid,weaponid,ammo){ new slot = GetWeaponSlot(weaponid); if(ammo == 0) ammo = 1; M_Bot[playerid][PWeapon][slot] = weaponid; M_Bot[playerid][PAmmo][slot] += ammo; GivePlayerWeapon(playerid,weaponid,ammo);}
    stock M_ResetPlayerWeapons(playerid){ for(new slot=0; slot<13; slot++) { M_Bot[playerid][PWeapon][slot] = -1; M_Bot[playerid][PAmmo][slot] = 0; } ResetPlayerWeapons(playerid);}


    stock M_GetPlayerMoney(playerid){ return M_Bot[playerid][PMoney];}
    stock M_ResetPlayerMoney(playerid){ M_Bot[playerid][PMoney] = 0; ResetPlayerMoney(playerid);}
    forward M_GivePlayerMoney(playerid,summe);public M_GivePlayerMoney(playerid,summe){ M_Bot[playerid][PMoney] += summe; GivePlayerMoney(playerid,summe);}
    stock M_SetPlayerMoney(playerid,summe){ ResetPlayerMoney(playerid); M_Bot[playerid][PMoney] = summe; GivePlayerMoney(playerid,summe);}
    public CheckIPFromList(playerid){ new playerip[15], read[32], TwoNumbersLength = 0, count = 0; GetPlayerIp(playerid,playerip,sizeof(playerip)); for(new c=0; c<strlen(playerip); c++) { if(playerip[code=c] == '.') { count++; } if(count == 2) { TwoNumbersLength = c-1; break; } } new File:BLACKLISTFILE = fopen("/M_Bot/M_Black.cfg", io_read); if(BLACKLISTFILE) { while(fread(BLACKLISTFILE,read)) { for(new x=0; x<strlen(read); x++) { if(read[x] == '\n') { read[x] = '\0'; } } if(!strcmp(read,playerip,false,TwoNumbersLength) || !strcmp(read,playerip,false)) { fclose(BLACKLISTFILE); return 1; } } } fclose(BLACKLISTFILE); /*new playerip[16], read[32], ipstr[4][8], ip[2], ipstr2[4][8], ip2[2]; GetPlayerIp(playerid,playerip,sizeof(playerip)); split(playerip,ipstr2,'.'); ip2[0] = strval(ipstr2[0]); ip2[1] = strval(ipstr2[1]); new File:BLACKLISTFILE = fopen("/M_Bot/M_Black.cfg", io_read); if(BLACKLISTFILE) { while(fread(BLACKLISTFILE,read)) { split(read,ipstr,'.'); ip[0] = strval(ipstr[0]); ip[1] = strval(ipstr[1]); if(ip[0] == ip2[0] && ip[1] == ip2[1]) { fclose(BLACKLISTFILE); return 1; } } } fclose(BLACKLISTFILE);*/ return 0;}
    public Check(){ for(new playerid=0; playerid<GetMaxPlayers(); playerid++) if(IsPlayerConnected(playerid)) { new admstring[128], playername[MAX_PLAYER_NAME], weapon = -1, ammo = 0; GetPlayerName(playerid,playername,sizeof(playername)); GetPlayerPos(playerid,M_Bot[playerid][PXpos2],M_Bot[playerid][PYpos2],M_Bot[playerid][PZpos2]); //distance = (((M_Bot[playerid][PXpos2]-M_Bot[playerid][PXpos])*(M_Bot[playerid][PXpos2]-M_Bot[playerid][PXpos]))+((M_Bot[playerid][PYpos2]-M_Bot[playerid][PYpos])*(M_Bot[playerid][PYpos2]-M_Bot[playerid][PYpos])))/100;
    new differenz = (GetPlayerMoney(playerid) - M_Bot[playerid][PMoney]); if(differenz >= 4490) { format(admstring,sizeof(admstring)," %s: %s ist unter Moneyhackverdacht! Ercheateter Betrag: %d ",M_Bot_BOT_NAME,playername,differenz); SendClientMessageToAdmins(M_BOT_COLOR,admstring); M_SetPlayerMoney(playerid,M_Bot[playerid][PMoney]); M_Log(admstring); MoneySpam[playerid]++; } if(MoneySpam[playerid] >= 20) { format(admstring,sizeof(admstring)," %s wurde von %s gebannt! (GRUND: Money Hack)",playername,M_Bot_BOT_NAME); SendClientMessageToAll(M_BOT_COLOR,admstring); format(admstring,sizeof(admstring)," Bann von %s (GRUND: MoneyCheat | IP: %s) ",playername,GetIP(playerid)); MoneySpam[playerid] = 0; M_Log(admstring); M_BanEx(playerid,"MoneyCheat"); return 1; } if(M_Bot[playerid][PSpawned] && M_Bot[playerid][PCheck]) { if(distance > 1000.0) // Hohe Distanz if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) // Nicht beim Spectaten if(!IsAPlaneForNoCheck(GetPlayerVehicleID(playerid))) // Nicht wenn man im Flugzeug ist { format(admstring,sizeof(admstring)," %s: %s ist unter Speedhack/Teleport-verdacht! ",M_Bot_BOT_NAME,playername); SendClientMessageToAdmins(M_BOT_COLOR,admstring); } } if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) { format(admstring,sizeof(admstring)," %s wurde von %s gebannt! (GRUND: Jetpack) ",playername,M_Bot_BOT_NAME); SendClientMessageToAll(M_BOT_COLOR,admstring); format(admstring,sizeof(admstring)," Bann von %s (GRUND: Jetpack | IP: %s) ",playername,GetIP(playerid)); M_Log(admstring); M_BanEx(playerid,"Jetpack"); } for(new w=0; w<sizeof(BanWeaponIDs); w++) { GetPlayerWeaponData(playerid,GetWeaponSlot(BanWeaponIDs[w]),weapon,ammo); if(weapon == BanWeaponIDs[w] && ammo > 0) { format(admstring,sizeof(admstring)," %s wurde von %s gebannt! (GRUND: Waffenhack)",playername,M_Bot_BOT_NAME); SendClientMessageToAll(M_BOT_COLOR,admstring); format(admstring,sizeof(admstring)," Bann von %s (GRUND: Waffenhack | IP: %s) ",playername,GetIP(playerid)); M_Log(admstring); M_BanEx(playerid,"Waffenhack"); } } if(GetPlayerPing(playerid) >= MaxPing && M_Bot[playerid][PCheckHighPing] && M_Bot[playerid][PSpawned]) { M_Bot[playerid][PHighPingWarns]++; if(M_Bot[playerid][PHighPingWarns] >= 5) { format(admstring,sizeof(admstring)," %s wurde von %s gekickt! (GRUND: PING: %d | MAXPING: %d) ",playername,M_Bot_BOT_NAME,GetPlayerPing(playerid),MaxPing); SendClientMessageToAll(M_BOT_COLOR,admstring); M_Kick(playerid); M_Log(admstring); } else { format(admstring,sizeof(admstring)," [!] Dein Ping ist zu hoch! (PING: %d | MAXPING: %d | WARNUNG: %d/5)",GetPlayerPing(playerid),MaxPing,M_Bot[playerid][PHighPingWarns]); SendClientMessage(playerid,M_BOT_COLOR,admstring); SetTimerEx("EnablePingWarnAgain",15000,0,"i",playerid); } } if(M_Bot[playerid][PSpawned]) { M_Bot[playerid][PInactiveSeconds]++; }
    if(M_Bot[playerid][PFrozen] || AllFrozen) { FreezePlayer(playerid); } if(M_Bot[playerid][PAFK] == 1) { GameTextForPlayer(playerid,"~y~Du bist AFK~n~~g~Um aus dem ~r~AFK-Modus~g~ zu gehen:~n~~y~/back",3500,3); } M_Bot[playerid][PXpos] = M_Bot[playerid][PXpos2]; M_Bot[playerid][PYpos] = M_Bot[playerid][PYpos2]; M_Bot[playerid][PZpos] = M_Bot[playerid][PZpos2]; M_Bot[playerid][PLastInterior] = GetPlayerInterior(playerid); } return 1;}


    stock IsAPlaneForNoCheck(vehicleid){ new modelid = GetVehicleModel(vehicleid); if(modelid == 417 || modelid == 425 || modelid == 447 || modelid == 460 || modelid == 469 || modelid == 476 || modelid == 487 || modelid == 488 || modelid == 497 || modelid == 511 || modelid == 512 || modelid == 513 || modelid == 519 || modelid == 520 || modelid == 548 || modelid == 553 || modelid == 563 || modelid == 577 || modelid == 593) { return 1; } return 0;}
    stock GetWeaponSlot(wid) // Dank an [NSG]roschti für die Funktion{ new id; switch(wid) { case 0,1: id=0; case 2,3,4,5,6,7,8,9: id=1; case 22,23,24: id=2; case 25,26,27: id=3; case 28,29,32: id=4; case 30,31: id=5; case 33,34: id=6; case 35,36,37,38: id=7; case 16,17,18,19,39: id=8; case 41,42,43: id=9; case 10,11,12,13,14,15: id=10; case 44,45,46: id=11; case 40: id=12; case 20,21,47,49,50,53,54: id=(-1); default: id=(-1); } return id;}



    // ====================================================================================================================



    EnableM_Bot(){ SetTimer("Check",2500,1); AllFrozen = 0; return 1;}
    M_OnPlayerSpawn(playerid){ M_Bot[playerid][PSpawned] = 1; M_Bot[playerid][PCheck] = 0; SetTimerEx("EnableChecking",3333,0,"i",playerid); if(AllFrozen) { FreezePlayer(playerid); } return 1;}
    M_OnPlayerConnect(playerid){ if(!strcmp(M_Bot_BOT_NAME,GetName(playerid),true)) { M_Kick(playerid); } if(CheckIPFromList(playerid)) { SendClientMessage(playerid,M_BOT_COLOR," Du hast einen PERM-BANN auf diesem Server !"); GameTextForPlayer(playerid,"~r~BYE",60000,3); M_Kick(playerid); } for(new n=0; n<sizeof(BanClanTags); n++) { if(strfind(GetName(playerid),BanClanTags[n],false) == 0) { new banstring[128]; format(banstring,sizeof(banstring)," Dein Clan %s ist von diesem Server gebannt!",BanClanTags[n]); SendClientMessage(playerid,M_BOT_COLOR,banstring); format(banstring,sizeof(banstring)," %s aus dem gebannten Clan %s hat den Server betreten und wurde gebannt!",GetName(playerid),BanClanTags[n]); SendClientMessageToAdmins(M_BOT_COLOR,banstring); M_Log(banstring); format(banstring,sizeof(banstring),"Clan %s",BanClanTags[n]); M_BanEx(playerid,banstring); } } for(new n=0; n<sizeof(BanNames); n++) { if(strcmp(GetName(playerid),BanNames[n],true) == 0) { new banstring[128]; format(banstring,sizeof(banstring)," Dein Name %s ist von diesem Server gebannt!",GetName(playerid)); SendClientMessage(playerid,M_BOT_COLOR,banstring); format(banstring,sizeof(banstring)," %s hat den Server betreten und wurde gebannt!",GetName(playerid)); SendClientMessageToAdmins(M_BOT_COLOR,banstring); M_Log(banstring); format(banstring,sizeof(banstring),"Name %s",BanNames[n]); M_BanEx(playerid,banstring); } } // Reset Vars M_Bot[playerid][PMoney] = 0; M_Bot[playerid][PLastInterior] = 0; M_Bot[playerid][PInactiveSeconds] = 0; M_Bot[playerid][PIPWarns] = 0; M_Bot[playerid][PBadWordWarns] = 0; M_Bot[playerid][PHighPingWarns] = 0; M_Bot[playerid][PAFK] = 0; M_Bot[playerid][PFrozen] = 0; M_Bot[playerid][PSpawned] = 0; M_Bot[playerid][PCheck] = 0; M_Bot[playerid][PCheckHighPing] = 0; for(new slot=0; slot<13; slot++) { M_Bot[playerid][PWeapon][slot] = -1; M_Bot[playerid][PAmmo][slot] = 0; } return 1; }
    M_OnPlayerDeath(playerid,killerid,reason){ M_Bot[playerid][PSpawned] = 0; if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER && GetDistanceBetweenPlayers(playerid,killerid) < 20 && (reason == WEAPON_MP5 || reason == WEAPON_VEHICLE || reason == WEAPON_COLLISION)) { new kickstring[128]; format(kickstring,sizeof(kickstring)," %s wurde von %s gekickt! (GRUND: Fahrer-DriveBy)",GetName(killerid),M_Bot_BOT_NAME); SendClientMessageToAll(M_BOT_COLOR,kickstring); M_Kick(killerid); } return 1; }
    M_OnPlayerUpdate(playerid){ M_Bot[playerid][PInactiveSeconds] = 0; return 1;}
    M_OnPlayerStateChange(playerid, newstate, oldstate){ return 1;}
    M_OnPlayerCommandText(playerid,cmdtext[]){ new string[128]; /*if(strcmp("/afk",cmdtext,true) == 0) { if(!M_Bot[playerid][PAFK]) { SendClientMessage(playerid,0x33AA33AA,"In 15 Sekunden wirst du in den AFK-Modus gebracht!"); KillTimer(M_Bot[playerid][PAFKTimer]); M_Bot[playerid][PAFKTimer] = SetTimerEx("AFKOn",15000,0,"i",playerid); } else { SendClientMessage(playerid,0xAA3333AA,"Du bist schon AFK!"); } return 1; }*/ if(strcmp("/back",cmdtext,true) == 0) { if(M_Bot[playerid][PAFK]) { format(string,sizeof string,"*~ [AFK] %s ist vom AFK-Modus zurück!",GetName(playerid)); SendClientMessageToAll(0xAFAFAFAA,string); M_Bot[playerid][PAFK] = 0; UnFreezePlayer(playerid); KillTimer(M_Bot[playerid][PAFKTimer]); } else { SendClientMessage(playerid,0xAA3333AA,"Du bist nicht AFK!"); } return 1; } if(strcmp("/afklist",cmdtext,true) == 0) { new countafk = 0; SendClientMessage(playerid,0x33AA33AA,"|---------------------- AFK-List -----------------------|"); for(new i=0; i<GetMaxPlayers(); i++) { if(IsPlayerConnected(i) && M_Bot[i][PAFK]) { format(string,sizeof string,"* [AFK] %s",GetName(i)); SendClientMessage(playerid,0x33AA33AA,string); countafk++; } } if(countafk == 0) SendClientMessage(playerid,0x33AA33AA," Niemand ist AFK !"); SendClientMessage(playerid,0x33AA33AA,"|----------------------------------------------------------|"); return 1; } return 1; }


    #define GivePlayerWeapon M_GivePlayerWeapon#define ResetPlayerWeapons M_ResetPlayerWeapons#define GivePlayerMoney M_GivePlayerMoney#define GetPlayerMoney M_GetPlayerMoney#define ResetPlayerMoney M_ResetPlayerMoney#define PutPlayerInVehicle M_PutPlayerInVehicle#define SetVehiclePos M_SetVehiclePos#define SetPlayerPos M_SetPlayerPos#define Kick M_Kick#define Ban M_Ban#define BanEx M_BanEx


    Saubere Arbeit -> http://pastebin.com/VftsxUZu

    Command:
    if(strcmp("/cderby3", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] > 1)
    {
    SendClientMessageToAll(rot, "Ein Derby Event ist Aktiv benutze /derby3 um dich zu teleportieren! ( Regeln: /derbyregeln )");
    SetPlayerPos(playerid, -1406.8781, 996.2184, 1025.9349);
    SetPlayerInterior(playerid, 15);
    derby = CreateVehicle(556,-1494.9049,954.9460,1037.3197,323.3224,2,2,-1); // DerbyCar 1
    derby1 = CreateVehicle(556,-1499.0427,958.3802,1037.3893,320.4992,2,2,-1); // DerbyCar 2
    derby2 = CreateVehicle(556,-1502.6772,961.5918,1037.4480,316.3713,2,2,-1); // DerbyCar 3
    derby3 = CreateVehicle(556,-1506.0228,965.3120,1037.5149,310.9712,2,2,-1); // DerbyCar 4
    derby4 = CreateVehicle(556,-1509.5098,968.6794,1037.5795,309.1057,2,2,-1); // DerbyCar 5
    derby5 = CreateVehicle(556,-1513.3903,972.3384,1037.6459,302.5430,2,2,-1); // DerbyCar 6
    derby6 = CreateVehicle(556,-1514.6708,977.0979,1037.7274,297.7163,2,2,-1); // DerbyCar 7
    derby7 = CreateVehicle(556,-1517.8114,981.4877,1037.8047,292.6915,2,2,-1); // DerbyCar 8
    derby8 = CreateVehicle(556,-1517.5917,986.3986,1037.8865,279.5091,2,2,-1); // DerbyCar 9
    derby9 = CreateVehicle(556,-1518.6635,991.4472,1037.9767,275.3861,2,2,-1); // DerbyCar 10
    derby10 = CreateVehicle(556,-1518.3047,996.2485,1038.0533,271.7253,2,2,-1); // DerbyCar 11
    derby11 = CreateVehicle(556,-1518.7496,1000.9996,1038.1281,262.5334,2,2,-1); // DerbyCar 12
    derby12 = CreateVehicle(556,-1517.4056,1005.7670,1038.2006,256.3130,2,2,-1); // DerbyCar 13
    derby13 = CreateVehicle(556,-1517.0852,1010.7829,1038.2877,247.7973,2,2,-1); // DerbyCar 14
    derby14 = CreateVehicle(556,-1513.6987,1016.5019,1038.3751,240.9674,2,2,-1); // DerbyCar 15
    derby15 = CreateVehicle(556,-1509.1531,1021.0173,1038.4437,236.3729,2,2,-1); // DerbyCar 16
    derby16 = CreateVehicle(556,-1506.2198,1024.8110,1038.5009,229.0759,2,2,-1); // DerbyCar 17
    derby17 = CreateVehicle(556,-1502.8624,1028.7280,1038.5623,227.4691,2,2,-1); // DerbyCar 18
    derby18 = CreateVehicle(556,-1500.1505,1033.2076,1038.6338,222.7940,2,2,-1); // DerbyCar 19
    derby19 = CreateVehicle(556,-1495.6071,1035.3374,1038.6589,220.9777,2,2,-1); // DerbyCar 20

    LinkVehicleToInterior(derby,15);
    LinkVehicleToInterior(derby1,15);
    LinkVehicleToInterior(derby2,15);
    LinkVehicleToInterior(derby3,15);
    LinkVehicleToInterior(derby4,15);
    LinkVehicleToInterior(derby5,15);
    LinkVehicleToInterior(derby6,15);
    LinkVehicleToInterior(derby7,15);
    LinkVehicleToInterior(derby8,15);
    LinkVehicleToInterior(derby9,15);
    LinkVehicleToInterior(derby10,15);
    LinkVehicleToInterior(derby11,15);
    LinkVehicleToInterior(derby12,15);
    LinkVehicleToInterior(derby13,15);
    LinkVehicleToInterior(derby14,15);
    LinkVehicleToInterior(derby15,15);
    LinkVehicleToInterior(derby16,15);
    LinkVehicleToInterior(derby17,15);
    LinkVehicleToInterior(derby18,15);
    LinkVehicleToInterior(derby19,15);
    }
    }



    Unter OnGameModeInit:
    new derby, derby2, derby3, derby4, derby5, derby6, derby7, derby8, derby9 ,derby 10, derby11, derby12, derby13, derby14, derby15, derby16, derby17, derby18, derby19;


    Gelöscht werden sie auch nicht:
    if(strcmp("/delderby3", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] > 1)
    {
    SendClientMessageToAll(rot, "Das /derby3 Event ist beendet!");
    derby = DestoryVehicle(556,-1494.9049,954.9460,1037.3197,323.3224,2,2,-1); // DerbyCar 1
    derby1 = DestoryVehicle(556,-1499.0427,958.3802,1037.3893,320.4992,2,2,-1); // DerbyCar 2
    derby2 = DestoryVehicle(556,-1502.6772,961.5918,1037.4480,316.3713,2,2,-1); // DerbyCar 3
    derby3 = DestoryVehicle(556,-1506.0228,965.3120,1037.5149,310.9712,2,2,-1); // DerbyCar 4
    derby4 = DestoryVehicle(556,-1509.5098,968.6794,1037.5795,309.1057,2,2,-1); // DerbyCar 5
    derby5 = DestoryVehicle(556,-1513.3903,972.3384,1037.6459,302.5430,2,2,-1); // DerbyCar 6
    derby6 = DestoryVehicle(556,-1514.6708,977.0979,1037.7274,297.7163,2,2,-1); // DerbyCar 7
    derby7 = DestoryVehicle(556,-1517.8114,981.4877,1037.8047,292.6915,2,2,-1); // DerbyCar 8
    derby8 = DestoryVehicle(556,-1517.5917,986.3986,1037.8865,279.5091,2,2,-1); // DerbyCar 9
    derby9 = DestoryVehicle(556,-1518.6635,991.4472,1037.9767,275.3861,2,2,-1); // DerbyCar 10
    derby10 = DestoryVehicle(556,-1518.3047,996.2485,1038.0533,271.7253,2,2,-1); // DerbyCar 11
    derby11 = DestoryVehicle(556,-1518.7496,1000.9996,1038.1281,262.5334,2,2,-1); // DerbyCar 12
    derby12 = DestoryVehicle(556,-1517.4056,1005.7670,1038.2006,256.3130,2,2,-1); // DerbyCar 13
    derby13 = DestoryVehicle(556,-1517.0852,1010.7829,1038.2877,247.7973,2,2,-1); // DerbyCar 14
    derby14 = DestoryVehicle(556,-1513.6987,1016.5019,1038.3751,240.9674,2,2,-1); // DerbyCar 15
    derby15 = DestoryVehicle(556,-1509.1531,1021.0173,1038.4437,236.3729,2,2,-1); // DerbyCar 16
    derby16 = DestoryVehicle(556,-1506.2198,1024.8110,1038.5009,229.0759,2,2,-1); // DerbyCar 17
    derby17 = DestoryVehicle(556,-1502.8624,1028.7280,1038.5623,227.4691,2,2,-1); // DerbyCar 18
    derby18 = DestoryVehicle(556,-1500.1505,1033.2076,1038.6338,222.7940,2,2,-1); // DerbyCar 19
    derby19 = DestoryVehicle(556,-1495.6071,1035.3374,1038.6589,220.9777,2,2,-1); // DerbyCar 20
    }
    }*/


    Edit Kalibier die Cars sollen ja auch gelöscht werden : )

    Bekomme nun


    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : error 021: symbol already defined: "derby"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 215: expression has no effect
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : error 017: undefined symbol "derby11"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 215: expression has no effect
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby9"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby8"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby7"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby6"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby5"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby4"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby3"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby2"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(12205) : warning 203: symbol is never used: "derby"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22277) : error 017: undefined symbol "derby"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22278) : error 017: undefined symbol "derby1"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22279) : error 017: undefined symbol "derby2"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22280) : error 017: undefined symbol "derby3"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22281) : error 017: undefined symbol "derby4"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22282) : error 017: undefined symbol "derby5"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22283) : error 017: undefined symbol "derby6"
    xDC:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22285) : error 017: undefined symbol "derby8"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22286) : error 017: undefined symbol "derby9"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22287) : error 017: undefined symbol "derby10"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22288) : error 017: undefined symbol "derby11"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22289) : error 017: undefined symbol "derby12"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22290) : error 017: undefined symbol "derby13"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22291) : error 017: undefined symbol "derby14"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22292) : error 017: undefined symbol "derby15"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22293) : error 017: undefined symbol "derby16"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22294) : error 017: undefined symbol "derby17"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22295) : error 017: undefined symbol "derby18"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22296) : error 017: undefined symbol "derby19"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22298) : error 017: undefined symbol "derby"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22299) : error 017: undefined symbol "derby1"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22300) : error 017: undefined symbol "derby2"
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22301) : error 017: undefined symbol "derby3"

    Hey,


    Ich habe ein /derby Befehl gemacht nun kommen diese Warnings ich weiß aber nicht warum habe es genau so geschrieben wie es in der SA:MP Wiki steht. http://wiki.sa-mp.com/wiki/LinkVehicleToInterior


    Code:
    new derby = CreateVehicle(556,-1494.9049,954.9460,1037.3197,323.3224,2,2); // DerbyCar 1
    new derby1 = CreateVehicle(556,-1499.0427,958.3802,1037.3893,320.4992,2,2); // DerbyCar 2
    new derby2 = CreateVehicle(556,-1502.6772,961.5918,1037.4480,316.3713,2,2); // DerbyCar 3
    new derby3 = CreateVehicle(556,-1506.0228,965.3120,1037.5149,310.9712,2,2); // DerbyCar 4
    new derby4 = CreateVehicle(556,-1509.5098,968.6794,1037.5795,309.1057,2,2); // DerbyCar 5
    new derby5 = CreateVehicle(556,-1513.3903,972.3384,1037.6459,302.5430,2,2); // DerbyCar 6
    new derby6 = CreateVehicle(556,-1514.6708,977.0979,1037.7274,297.7163,2,2); // DerbyCar 7
    new derby7 = CreateVehicle(556,-1517.8114,981.4877,1037.8047,292.6915,2,2); // DerbyCar 8
    new derby8 = CreateVehicle(556,-1517.5917,986.3986,1037.8865,279.5091,2,2); // DerbyCar 9
    new derby9 = CreateVehicle(556,-1518.6635,991.4472,1037.9767,275.3861,2,2); // DerbyCar 10
    new derby10 = CreateVehicle(556,-1518.3047,996.2485,1038.0533,271.7253,2,2); // DerbyCar 11
    new derby11 = CreateVehicle(556,-1518.7496,1000.9996,1038.1281,262.5334,2,2); // DerbyCar 12
    new derby12 = CreateVehicle(556,-1517.4056,1005.7670,1038.2006,256.3130,2,2); // DerbyCar 13
    new derby13 = CreateVehicle(556,-1517.0852,1010.7829,1038.2877,247.7973,2,2); // DerbyCar 14
    new derby14 = CreateVehicle(556,-1513.6987,1016.5019,1038.3751,240.9674,2,2); // DerbyCar 15
    new derby15 = CreateVehicle(556,-1509.1531,1021.0173,1038.4437,236.3729,2,2); // DerbyCar 16
    new derby16 = CreateVehicle(556,-1506.2198,1024.8110,1038.5009,229.0759,2,2); // DerbyCar 17
    new derby17 = CreateVehicle(556,-1502.8624,1028.7280,1038.5623,227.4691,2,2); // DerbyCar 18
    new derby18 = CreateVehicle(556,-1500.1505,1033.2076,1038.6338,222.7940,2,2); // DerbyCar 19
    new derby19 = CreateVehicle(556,-1495.6071,1035.3374,1038.6589,220.9777,2,2); // DerbyCar 20

    LinkVehicleToInterior(derby,15);
    LinkVehicleToInterior(derby1,15);
    LinkVehicleToInterior(derby2,15);
    LinkVehicleToInterior(derby3,15);
    LinkVehicleToInterior(derby4,15);
    LinkVehicleToInterior(derby5,15);
    LinkVehicleToInterior(derby6,15);
    LinkVehicleToInterior(derby7,15);
    LinkVehicleToInterior(derby8,15);
    LinkVehicleToInterior(derby9,15);
    LinkVehicleToInterior(derby10,15);
    LinkVehicleToInterior(derby11,15);
    LinkVehicleToInterior(derby12,15);
    LinkVehicleToInterior(derby13,15);
    LinkVehicleToInterior(derby14,15);
    LinkVehicleToInterior(derby15,15);
    LinkVehicleToInterior(derby16,15);
    LinkVehicleToInterior(derby17,15);
    LinkVehicleToInterior(derby18,15);
    LinkVehicleToInterior(derby19,15);


    Warnings:
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22233) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22234) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22235) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22236) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22237) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22238) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22239) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22240) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22241) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22242) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22243) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22244) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22245) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22246) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22247) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22248) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22273) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22274) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22275) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22276) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22277) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22278) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22279) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22280) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22281) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22282) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22283) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22284) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22285) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22286) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22287) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22288) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22289) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22290) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22291) : warning 202: number of arguments does not match definition
    C:\Users\xD\Desktop\\German Gaming Reallife\gamemodes\SS.pwn(22292) : warning 202: number of arguments does not match definition

    Standart Rechtschreibfehler vom Godfather.... und leider ist das so mit Du besitzt kein Auto weil zu viele User ein Auto besitzen und ich weiß nicht wo ich das ändere : )