Beiträge von Kevin B.

    public OnPlayerSpawn(playerid)
    {
    if(IsInDglDm(playerid) == 1) //== vegessen
    {
    SetPlayerInterior(playerid,1);
    new DeagleRandom = random(sizeof(DeagleSpawn));
    SetPlayerPos(playerid,DeagleSpawn[DeagleRandom][0],DeagleSpawn[DeagleRandom][1],DeagleSpawn[DeagleRandom][2]);
    SetPlayerFacingAngle(playerid,DeagleSpawn[DeagleRandom][3]);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,0);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,250);
    }
    if(IsInBoxDm(playerid) == 1)//== vegessen
    {
    SetPlayerInterior(playerid,1);
    new FaustRandom = random(sizeof(FaustSpawn));
    SetPlayerPos(playerid,FaustSpawn[FaustRandom][0],FaustSpawn[FaustRandom][1],FaustSpawn[FaustRandom][2]);
    SetPlayerFacingAngle(playerid,FaustSpawn[FaustRandom][3]);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,0);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,250);
    }
    return 1;
    }
    bei den andren sorrry weis ich nicht

    hey ich erhalte hier 2 Error
    public timebancheck(playerid)
    {
    new query[256],data[255],ergebnis,timestamp;
    format(query,sizeof(query),"SELECT * FROM `timeban` WHERE `IP`='%s' OR `Name`='%s'",gPlayerIP[playerid],gPlayerName[playerid]);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("ID",data);//Hier error 035: argument type mismatch (argument 1)
    ergebnis=strval(data);
    mysql_fetch_field("Datum",data);//und hier error 035: argument type mismatch (argument 1)
    timestamp=strval(data);
    if(ergebnis!=0)
    {
    if(Now()<timestamp)
    {
    new string[128];
    new zahl=timestamp-Now();
    zahl=zahl/60;
    format(string,128,"Du bist noch %d Minuten gebannt",zahl);
    SendClientMessage(playerid,ROT,string);
    return Kick(playerid);
    }
    else
    {
    format(query,sizeof(query),"DELETE FROM `timeban` WHERE `IP`='%s' OR `Name`='%s'",gPlayerIP[playerid],gPlayerName[playerid]);
    mysql_query(query);
    }
    }
    }
    mysql_free_result();
    return 1;
    }
    ich nutze das MYSQL von http://forum.sa-mp.com/showthread.php?t=56564
    kann mir da wer helfen?
    lg kifkat
    //edit kann mir da wer helfen?

    if(strcmp(cmdtext,"/stats",true)==0)
    {
    new string[128];
    format(string,sizeof(string),"%s===========================================================",string);//string
    format(string,sizeof(string),"%s[Name: %s] [Kills: %i] [Tode: %i] [Adminlevel: %i] [Warns: %i]",string,SpielerName(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Tode"),GetPVarInt(playerid,"Adminlevel"),GetPVarInt(playerid,"Warn"));//string
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Informationen", string, "Schließen", "");
    //2 reihe
    new string3[128];
    format(string3,sizeof(string3),"===========================================================");
    SendClientMessage(playerid,drot,string3);
    return 1;
    }
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Informationen", string, "Schließen", "");//eingefügt

    new FactionBuylist[][fBuylist] ={
    {405,311.5587,-1809.4019,4.3394,0.4307,50000}, // Sentinal
    {411,314.7912,-1809.7482,4.1969,0.6235,50000}, // Infernus
    {412,317.9757,-1809.7987,4.3057,359.7154,50000}, // Voodoo
    {415,321.2232,-1809.7538,4.2428,358.6720,50000}, // Cheetah
    {429,327.7953,-1809.6830,4.1553,358.6708,50000}, // Banshee
    {439,330.9087,-1809.8531,4.3694,0.3104,50000},// Stallion
    {445,334.1863,-1809.9110,4.3532,359.8896,50000}, // Admiral
    {451,337.3522,-1810.0112,4.1961,359.9379,50000}, // Turismo
    {475,346.8968,-1809.8660,4.3106,1.0387,50000}, // Sabre
    {477,350.3359,-1809.8031,4.2649,358.7115,50000}, // ZR-350
    {479,353.4312,-1809.7145,4.3135,358.5456,50000}, // Regina
    {480,356.7751,-1809.7437,4.2925,359.1791,50000},// Comet
    {506,311.6965,-1789.0367,4.2775,179.3222,50000},// Super GT
    {522,315.0852,-1787.9764,4.2041,180.3209,50000}, // NRG
    {541,318.1741,-1788.7317,4.3038,179.2764,50000},// Bullet
    {559,321.4809,-1788.6581,4.3889,179.6865,50000}, // Jester
    {562,324.7844,-1788.7953,4.4454,179.5516,50000}, // Elegy
    {561,328.0639,-1789.1740,4.6501,179.3546,50000}, // Stratum
    {565,331.4161,-1788.7366,4.5075,181.2386,50000}, // Flash
    {587,334.3581,-1789.3591,4.6165,179.8554,50000}, // Euros
    {589,337.6046,-1788.9492,4.5795,180.8319,50000}, // Club
    {560,324.5808,-1810.1571,4.1698,359.8678,50000}, // Sultan
    {487,309.9238,-1800.4260,4.6735,181.1788,50000} // Maverik// hier daf kein , sein
    }

    ocmd:setadmin(playerid,params[])
    {
    new pID,rank;//news Vergessen
    if(IsPlayerAdmin(playerid))
    if(sscanf(params,"ui",pID,rank))return SendClientMessage(playerid,BLAU,"/setadmin [spieler] [level 0-5]");
    if(rank<0||rank>2000)return SendClientMessage(playerid,ROT,"Bitte gültigen Rang angeben.");
    SetPVarInt(pID,"Adminlevel",rank);
    SendClientMessage(playerid,BLAU,"Der Vorgang war erfolgreich");
    SpielerSpeichern(pID);
    return 1;
    }

    ocmd:spec(playerid, params[])
    {
    new id;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, 0xFFFFFF, "/spec [ID]");
    {
    new str[128];
    TogglePlayerSpectating(playerid, 1);
    PlayerSpectatePlayer(playerid, id);
    format(str, sizeof(str), "Du beobachtest nun %s", SpielerName(id));
    SendClientMessage(playerid, 0xFFFFFF, str);
    }
    return 1;
    }


    ocmd:specoff(playerid, params[])
    {
    TogglePlayerSpectating(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid, 0xFFFFFF, "Du beobachtest niemanden mehr");
    return 1;
    }