Beiträge von .Kevin

    Guten Abend Liebe SA:MP Community,


    Ich habe jetzt bei meinem Selfmade ein Knast System geschrieben, nun habe ich für jedes WantedLevel ein Timer gesetzt, weil ich
    nicht so ganz wusste wie das geht :D
    Dann habe ich jetzt die frage, kann ich den Timer auslesen lassen für /jailtime ?



    MFG K3VIN

    Ich schätze mal du redest von einem echten Auto,
    daher bin ich der Meinung, das du damit zu einer Autowerkstatt fahren solltest,
    denn es kann an vielem liegen. Desweiteren wenn du dich nicht auskennst würde ich die
    Finger von lassen. Solltest du aber Ahnung von haben, oder ein anderer Bekannter,
    dann kann der ja auch mal schauen.


    MFG K3VIN

    if(strcmp(cmd,"/e",true) == 0)
    {
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
    {
    SendClientMessage(playerid,F_O,"Du bist nicht der faher");
    return 1;
    }
    new vehicleid = GetPlayerVehicleID(playerid);
    if(enginebool[vehicleid] == false)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Du startest den Motor");
    SetTimer("motoran",1000,0);
    }
    else
    {
    SetVehicleEngineOff(vehicleid);
    enginebool[vehicleid] = false;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du hast den Motor ausgeschaltet!");
    }
    } <--- Motor befehl !


    Function motoran(playerid)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    SetVehicleEngineOn(vehicleid);
    enginebool[vehicleid] = true;
    SendClientMessage(playerid, GELB, "Du hast den Motor gestartet");
    return 1;
    } <--- Damit der Motor gestartet wird.

    Hallo liebe Community,


    Ich habe ein kleines Problem mit meinem Selfmade, undzwar wenn ich ID 0 bin und ID 1 den Motor starten will,
    dann passiert bei ihm nichts, und ich ID 0 bekomme dann die Meldung " Du hast den Motor gesartet" ?
    Weiß einer wodran es liegen kann ?



    MFG K3VIN

    Wie meinst du das ?


    Meinst du das es ein Paar sekunden dauert bis der Motor startet oder wie ?


    Fals du es so meinst wie es dort steht ...


    TogglePlayerControllable(playerid,0) <--- Freezen


    TogglePlayerControllable(playerid,1) <--- entfreezen

    Selfmade:


    ocmd:setskin(playerid,params[])
    {
    new skinid1,pID,string[128];
    if(sscanf(params,"ud",pID,skinid1))return SendClientMessage(playerid, BLAU,"/setskin [PLAYERID] [SKINID]");
    if(isPlayerAnAdmin(playerid,1))
    {
    SetPlayerSkin(pID,skinid1);
    format(string,sizeof(string),"Ein Admin hat dir den Skin %d zugewiesen!",skinid1);
    SendClientMessage(pID,BLAU,string);
    }
    else
    {
    SendClientMessage(playerid,ROT,"Diesen Befehl kannst du nicht nutzen. Mindestens benötigter Rang: {00FF5A}Supporter");
    }
    return 1;
    }


    ocmd:gibwaffe(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,2))return SendClientMessage(playerid,ROT,"Du bist kein Admin der Stufe 2.");
    new pID,wID,ammo;
    if(sscanf(params,"uii",pID,wID,ammo))return SendClientMessage(playerid,BLAU,"Nutze /giveweapon [id] [waffe] [ammo]");
    if(wID<1||wID>40)return SendClientMessage(playerid,ROT,"Du kannst nur eine Waffen von 1-40 wählen");
    GivePlayerWeapon(pID,wID,ammo);
    return 1;
    }

    Ich habe auch versucht abzuhauen, aber die waren ein wenig schlauer und haben die Schnellstraße dicht gemacht :DDD


    Kommt halt immerdrauf an :D

    if(strcmp(cmd, "/setskin", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Hilfe : /setskin [playerid/PartOfName] [skin model]");
    return 1;
    }
    new playa;
    new health;
    playa = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    health = strvalEx(tmp);
    if (PlayerInfo[playerid][pAdmin] >= 4)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    new name[20];
    new victim[20];
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerName(playa, victim, sizeof(victim));
    PlayerInfo[playa][pModel] = health;
    PlayerInfo[playa][pChar] = health;
    SetPlayerSkin(playa, PlayerInfo[playa][pChar]);
    format(string, 256, "AdmWarning: [%s] Skin was just set to %d by %s!",victim,health,name);
    ABroadCast(COLOR_YELLOW,string,1347);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen CMD nicht nutzen,schäm dich!");
    }
    }
    return 1;
    }



    if(strcmp(cmd, "/givegun", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /givegun [playerid] [weaponid(eg. 46 = Parachute)] [ammo]");
    return 1;
    }
    new playa;
    new gun;
    new ammo;
    playa = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    gun = strval(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /givegun [playerid] [weaponid] [ammo]");
    SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
    SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
    return 1;
    }
    if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==36||gun==38||gun==39||gun==40||gun==44||gun==45)
    { SendClientMessage(playerid, COLOR_GRAD1, " wrong WeaponID!"); return 1; }
    tmp = strtok(cmdtext, idx);
    ammo = strval(tmp);
    if(ammo <1||ammo > 999)
    { SendClientMessage(playerid, COLOR_GRAD1, " dont go below 1 or above 999 bullets!"); return 1; }
    if (PlayerInfo[playerid][pAdmin] >= 1338)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    GivePlayerWeapon(playa, gun, ammo);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht befugt!");
    }
    }
    return 1;
    }


    Sind ausm GF ;)

    Als ich damals mit meinem Roller angehalten wurde war es net so toll :/


    Ich hatte 25er Lappen und mein Roller lief 85Km/h ... heißt 60Km/h zu schnell...


    Hatte aber glück und musste nur 10 Sozialstunden machen ...


    MFG K3VIN

    Hallo Liebe Community,


    Ich möchte euch heute meine etwas ältere Bank Map vorstellen, sie gammelte ung. 4 Monate auf meine Pc
    und habe sie eben gesehen, dachte mir ich stelle sie hier mal vor..









    CreateDynamicObject(3578, 1491.3549804688, -1033.7301025391, 21.898597717285, 0, 0, 270);
    CreateDynamicObject(3578, 1412.81640625, -1034.2332763672, 21.934284210205, 0, 0, 270);
    CreateDynamicObject(3578, 1482.109375, -1044.1080322266, 21.939308166504, 0, 0, 0);
    CreateDynamicObject(982, 1435.0396728516, -1028.5969238281, 23.511680603027, 0, 0, 270);
    CreateDynamicObject(982, 1479.3332519531, -1028.5690917969, 23.508235931396, 0, 0, 270);
    CreateDynamicObject(983, 1451.0402832031, -1028.58984375, 23.511680603027, 0, 0, 270);
    CreateDynamicObject(983, 1457.4793701172, -1028.5888671875, 23.511680603027, 0, 0, 270);
    CreateDynamicObject(983, 1422.3665771484, -1021.4414672852, 23.511680603027, 0, 0, 0);
    CreateDynamicObject(983, 1492.1708984375, -1021.7938842773, 23.683567047119, 0, 0, 0);
    CreateDynamicObject(640, 1489.302734375, -1028.1688232422, 23.518781661987, 0, 0, 270);
    CreateDynamicObject(640, 1482.9465332031, -1028.16796875, 23.518775939941, 0, 0, 270);
    CreateDynamicObject(640, 1476.1834716797, -1028.1901855469, 23.518939971924, 0, 0, 270);
    CreateDynamicObject(640, 1469.6450195313, -1028.1447753906, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1457.0510253906, -1028.1885986328, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1448.5728759766, -1028.1895751953, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1440.8751220703, -1028.2225341797, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1433.6862792969, -1028.1453857422, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1426.2392578125, -1028.1822509766, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1428.6110839844, -1022.1986083984, 23.525157928467, 0, 0, 270);
    CreateDynamicObject(640, 1438.482421875, -1010.0808105469, 26.540782928467, 0, 0, 270);
    CreateDynamicObject(640, 1422.7385253906, -1021.9010009766, 23.525157928467, 0, 0, 180);
    CreateDynamicObject(638, 1491.9259033203, -1023.350402832, 23.504314422607, 0, 0, 0);
    CreateDynamicObject(640, 1445.2006835938, -1009.9122314453, 26.540782928467, 0, 0, 270);
    CreateDynamicObject(640, 1475.4632568359, -1009.989440918, 26.540782928467, 0, 0, 270);
    CreateDynamicObject(640, 1486.1997070313, -1009.9443359375, 26.540782928467, 0, 0, 270);
    CreateDynamicObject(644, 1451.2482910156, -1016.7339477539, 26.623031616211, 0, 0, 0);
    CreateDynamicObject(644, 1472.7424316406, -1016.7182006836, 26.6171875, 0, 0, 164);
    CreateDynamicObject(9833, 1480.2196044922, -1017.5310058594, 21.871580123901, 0, 0, 0);
    CreateDynamicObject(9833, 1442.3940429688, -1017.8798828125, 21.49125289917, 0, 0, 0);
    CreateDynamicObject(982, 1449.6114501953, -1039.3179931641, 23.511680603027, 0, 0, 270);
    CreateDynamicObject(983, 1467.3109130859, -1050.3928222656, 23.511680603027, 0, 0, 179.98950195313);
    CreateDynamicObject(2773, 1452.3604736328, -1011.1256103516, 26.3609790802, 0, 0, 0);
    CreateDynamicObject(2773, 1462.5208740234, -1011.0042114258, 26.3609790802, 0, 0, 0);
    CreateDynamicObject(2773, 1472.0151367188, -1011.0607299805, 26.3609790802, 0, 0, 0);
    CreateDynamicObject(3666, 1460.8569335938, -1028.578125, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1466.3262939453, -1028.4937744141, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1464.9329833984, -1028.5430908203, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1463.4796142578, -1028.5643310547, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1462.1281738281, -1028.5239257813, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1467.2730712891, -1045.9685058594, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1491.8494873047, -1026.8894042969, 23.326061248779, 0, 0, 0);
    CreateDynamicObject(3666, 1491.865234375, -1025.71484375, 23.317457199097, 0, 0, 0);
    CreateDynamicObject(3666, 1422.4932861328, -1025.9033203125, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1422.4498291016, -1027.1525878906, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(983, 1463.9926757813, -1039.2896728516, 23.511680603027, 0, 0, 270);
    CreateDynamicObject(3666, 1467.2637939453, -1044.6763916016, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1467.2730712891, -1043.3350830078, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1467.2967529297, -1042.103515625, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1467.3259277344, -1040.7659912109, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1467.2873535156, -1039.291015625, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1430.3601074219, -1046.5080566406, 23.286542892456, 0, 0, 0);
    CreateDynamicObject(982, 1435.2756347656, -1039.3260498047, 23.511680603027, 0, 0, 270);
    CreateDynamicObject(3666, 1422.6293945313, -1040.4545898438, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1422.5577392578, -1041.5451660156, 23.34181022644, 0, 0, 0);
    CreateDynamicObject(3666, 1422.5646972656, -1042.7084960938, 23.349290847778, 0, 0, 0);
    CreateDynamicObject(3666, 1428.4982910156, -1046.4836425781, 23.295999526978, 0, 0, 0);
    CreateDynamicObject(3666, 1426.4838867188, -1046.4710693359, 23.304002761841, 0, 0, 0);
    CreateDynamicObject(3666, 1424.3588867188, -1046.4670410156, 23.310958862305, 0, 0, 0);
    CreateDynamicObject(737, 1427.2149658203, -1040.0247802734, 23.078125, 0, 0, 0);
    CreateDynamicObject(737, 1444.5660400391, -1040.0798339844, 23.078125, 0, 0, 0);
    CreateDynamicObject(737, 1460.8862304688, -1040.1403808594, 23.078125, 0, 0, 0);
    CreateDynamicObject(1231, 1486.1794433594, -1028.2280273438, 25.552576065063, 0, 0, 0);
    CreateDynamicObject(1231, 1479.5684814453, -1028.1490478516, 25.551998138428, 0, 0, 0);
    CreateDynamicObject(1231, 1472.9365234375, -1028.1766357422, 25.558801651001, 0, 0, 0);
    CreateDynamicObject(1231, 1466.6611328125, -1028.1496582031, 25.558517456055, 0, 0, 0);
    CreateDynamicObject(1231, 1460.0336914063, -1028.1058349609, 25.558517456055, 0, 0, 0);
    CreateDynamicObject(1231, 1453.0422363281, -1028.1242675781, 25.558517456055, 0, 0, 0);
    CreateDynamicObject(1231, 1444.6697998047, -1028.0581054688, 25.558517456055, 0, 0, 0);
    CreateDynamicObject(1231, 1437.2224121094, -1028.1165771484, 25.558517456055, 0, 0, 0);
    CreateDynamicObject(1231, 1429.9614257813, -1028.1583251953, 25.558517456055, 0, 0, 0);
    CreateDynamicObject(1359, 1453.2829589844, -1010.0794067383, 26.542306900024, 0, 0, 0);
    CreateDynamicObject(1359, 1471.3360595703, -1010.3375244141, 26.542306900024, 0, 0, 0);
    CreateDynamicObject(1359, 1460.1574707031, -1048.4710693359, 23.526681900024, 0, 0, 0);
    CreateDynamicObject(1359, 1444.5836181641, -1048.1986083984, 23.526681900024, 0, 0, 0);
    CreateDynamicObject(1280, 1456.2541503906, -1048.5598144531, 23.229480743408, 0, 0, 270);
    CreateDynamicObject(1280, 1448.9615478516, -1048.5456542969, 23.229480743408, 0, 0, 269.99951171875);
    CreateDynamicObject(1229, 1499.4432373047, -1024.4645996094, 24.358539581299, 0, 0, 0);
    CreateDynamicObject(1233, 1467.6828613281, -1049.39453125, 24.387805938721, 0, 0, 88);
    CreateDynamicObject(1257, 1503.0114746094, -1024.3729248047, 24.086185455322, 0, 0, 84);
    CreateDynamicObject(1257, 1471.3360595703, -1053.7071533203, 24.108247756958, 0, 0, 179.99597167969);
    CreateDynamicObject(1359, 1471.7479248047, -1050.6271972656, 23.525751113892, 0, 0, 0);
    CreateDynamicObject(1229, 1471.9776611328, -1056.9291992188, 24.387798309326, 0, 0, 92);



    Sry für die Textdraws unten, hatte die MTA nicht mehr installiert...


    MFG K3VIN

    Ich denke nicht das es an dem SetPVarInt liegt...
    Weil das hat damit eigentlich nichts zu tun, wenn es doch so sein sollte dann bin ich buff :o

    ocmd:ban(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,2))return SendClientMessage(playerid,ROT,"Dein Admin Rang ist nicht Hoch genug");
    if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
    new pID, reason[128],string[128];
    if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,BLAU,"/ban [id] [grund]");
    format(string,sizeof(string),"AdmCmd: %s wurde von %s gebannt. Grund: %s",SpielerName(pID),SpielerName(playerid),reason);
    SendClientMessageToAll(HELLBLAU,string);
    Ban(pID);
    return 1;
    }


    mein Befehl, probier den mal

    Versuch mal so


    ocmd:ban(playerid,params[])
    {
    new pID[MAX_PLAYERS];
    new reason[128],string[128];
    if(!IsPlayerAnAdmin(playerid,1000))return SendClientMessage(playerid,ROT,"Du bist kein Admin!");
    if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,GRAU,"Benutzung: /ban [ID] [GRUND]");
    format(string,sizeof(string),"[ ***SERVER*** ]: %s wurde von %s [ **GEBANNT**]. Grund: [ **%s** ]",SpielerName(pID),SpielerName(playerid),reason);
    SendClientMessageToAll(HELLBLAU,string);
    Ban(pID);
    return 1;
    }