Beiträge von Gazette

    Hallo und zwar geht das Tor nur zufuß auf
    if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
    {
    if(newkeys ==262144)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,1836.9003900,-1442.5000000,14.3000000))
    {
    MoveDynamicObject(tuvtor,1836.9003900,-1442.5000000,4.3000000,5.0,0.0000000,0.0000000,0.0000000);
    SendClientMessage(playerid,COLOR_GREEN,"Das Tor schließt sich in 5 Sekunden automatisch");
    SetTimer("tuvtor1", 5000, 0);
    }
    }
    }
    else
    {
    if(newkeys ==262144)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,1836.9003900,-1442.5000000,14.3000000))
    {
    MoveDynamicObject(tuvtor,1836.9003900,-1442.5000000,4.3000000,5.0,0.0000000,0.0000000,0.0000000);
    SendClientMessage(playerid,COLOR_GREEN,"Das Tor schließt sich in 5 Sekunden automatisch");
    SetTimer("tuvtor1", 5000, 0);
    }
    }
    }

    Halllo, warum wird hier nur 1 Fahrzeug im Dialog angezeigt ?


    new x=0;
    if(sscanf(params,"i",fID))
    {
    if(SpielerInfo[playerid][Frakt]==0)return 1;
    for(new i=1; i<MAX_AUTOS; i++)
    {
    if(FraktAuto[i][besitzer]==SpielerInfo[playerid][Frakt])
    {
    x++;
    if(isValidDBCarForFrakts(FraktAuto[i][d_id]))
    {
    format(string,sizeof(string),"%s: Model: %i Fahrzeug: %i",GetVehicleName(GetVehicleModel(FraktAuto[i][id_x])),FraktAuto[i][vmodel],FraktAuto[i][id_x]);
    ShowPlayerDialog(playerid, DIALOG_FRAKCARSS, DIALOG_STYLE_LIST, "Fraktionsfahrzeuge", string, "Absenden", "Abbrechen");
    }
    }
    }
    format(string,sizeof(string),"Deine Fraktion hat insgesammt '%i' Fahrzeuge.",x);
    SendClientMessage(playerid,COLOR_GREY,string);
    return 1;
    }

    versuche es mal so:

    if (SpielerInfo[playerid][pAdmin] > 0)
    {
    new string2[53];
    format(string2, sizeof(string2), "SERVER: Du hast dich als Level %d Admin eingeloggt.",SpielerInfo[playerid][pAdmin]);
    SCM(playerid, COLOR_WHITE,string2);
    SetSpawnInfo(playerid, SpielerInfo[playerid][pTeam], SpielerInfo[playerid][pChar], 1770.6027,-1779.4812,13.5500, 1.0, -1, -1, -1, -1, -1, -1);
    SpielerInfo[playerid][pOnline] = 1;
    gPlayerLogged[playerid] = 1;
    SaveMysqlPlayer(playerid);
    SpawnPlayer(playerid);
    SetPlayerWeapons(playerid);
    DateProp(playerid);
    else
    {
    KickEx(playerid);
    }
    }

    Hallo, und zwar habe ich folgende errors:
    C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : error 001: expected token: ";", but found ")"
    C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    code:
    [pwn=77813]public AirBreak()
    {
    foreach (Player, i)
    {
    new Float:X, Float:Y, Float:Z, Float:ZM, Float:difference;
    GetPlayerPos(i,X,Y,Z); //Get the players position
    MapAndreas_FindZ_For2DCoord(X,Y,ZM); //Gets the max Z cord
    difference = Z-ZM;
    new string5[120];
    if(!IsVehicleAir(i, GetPlayerVehicleID(i)))
    {
    if (difference > 100 && GetPlayerState(i) == PLAYER_STATE_PASSENGER || GetPlayerState(i) == PLAYER_STATE_DRIVER)
    {
    format(string5,sizeof(string5),"AdminCMD: %s wurde vom Server gekickt. Grund: Airbreak",SpielerInfo(i));
    SendClientMessageToAll(COLOR_RED,string5);
    }
    //If players Z cord is more than 100 meters above the ground
    if(difference > 10 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
    {
    format(string5,sizeof(string5),"AdminCMD: %s wurde vom Server gekickt. Grund: Airbreak",SpielerInfo(i));
    SendClientMessageToAll(COLOR_RED,string5);
    }
    }
    }
    }[/pwn]

    Hier wo "SWIM" steht das war ich wo ich geflogen bin:
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = PED , InWater = 0 , pBanned = 0
    [20:17:24] lib = SWIM , InWater = 3 , pBanned = 0


    Ist nur ein kleiner ausschnitt ;D

    leider passiert jetzte garnichts mehr wenn ich cheate. HIer mal den ganzen OnPlayerUpdate:
    public OnPlayerUpdate(playerid)
    {
    new lib[32], name[32];
    new SName[MAX_PLAYER_NAME]; GetPlayerName(playerid,SName,MAX_PLAYER_NAME);
    if(switched[playerid] == 2)
    {
    GetPlayerPos(playerid,NewPos[playerid][0],NewPos[playerid][1],NewPos[playerid][2]);
    new Float:d = Distance(OldPos[playerid][0],OldPos[playerid][1],OldPos[playerid][2],NewPos[playerid][0],NewPos[playerid][1],NewPos[playerid][2]);
    if(d >= 18 && posbyserver[playerid] != 1)return SCMToAllF(Rot,"Spieler '%s' wurde vom Server gekickt. Grund: Airbrake / Teleporthack!",SName),pBanned[playerid] = 1,Kicks(playerid);
    switched[playerid] = 1;
    }
    else if(switched[playerid] == 1)GetPlayerPos(playerid,OldPos[playerid][0],OldPos[playerid][1],OldPos[playerid][2]),switched[playerid] = 2;


    if(GetPlayerAnimationIndex(playerid))
    {
    GetAnimationName(GetPlayerAnimationIndex(playerid),lib,32,name,32);
    if(!strcmp(lib, "SWIM", true) && !IsPlayerInWater(playerid) && pBanned[playerid] != 1)return SCMToAllF(Rot,"AdminCMD: %s wurde vom Server gekickt. Grund: Flyhack!",SpielerName(playerid)),pBanned[playerid] = 1,Kicks(playerid);
    }


    return 1;
    }


    Beim Anti - Airbreak funktioniert das...

    Vermutlich, weil der Timer, wo der Flyhack geprüft wird, zu hoch eingestellt ist.


    BTW: Die Abfrage ist falsch:


    if(!strcmp(lib, "SWIM", true) && !IsPlayerInWater(playerid))
    So ist es korrekt.


    Ich glaube nicht das die falsch ist. Bringt auch kein unterschied

    Hallo, und zwar teste ich gerade einige AntICheats so, wenn ich den flyhack teste werde ich gekcikt aber es kommt mehrmals: .. wurde vom Server gekickt. Grund: ..


    Code: new lib[32], name[32];
    if(GetPlayerAnimationIndex(playerid))
    {
    GetAnimationName(GetPlayerAnimationIndex(playerid),lib,32,name,32);
    if(!strcmp(lib, "SWIM", true && !IsPlayerInWater(playerid)))return SCMToAllF(Rot,"AdminCMD: %s wurde vom Server gekickt. Grund: Flyhack!",SpielerName(playerid)),Kicks(playerid);
    }

    Hallo,


    ich versuche momentan ein Fahrschul system. Man darf nicht schneller als 80 KM/H fahren nur wenn ich mehr als 80 KM7H fahren kommt keine nachricht code.
    forward Wegenzuschnell(playerid);
    public Wegenzuschnell(playerid)
    {
    new Float:xg,Float:yg,Float:zg;
    new Float:distance,value;
    new Float:carhealth;
    GetPlayerPos(playerid, xg, yg, zg);
    GetVehicleHealth(GetPlayerVehicleID(playerid), carhealth);
    distance = floatsqroot(floatpower(floatabs(floatsub(xg,SavedPOSx[playerid])),2)+floatpower(floatabs(floatsub(yg,SavedPOSy[playerid])),2)+floatpower(floatabs(floatsub(zg,SavedPOSz[playerid])),2));
    value = floatround(distance * 800);
    if(floatround(value/3200) < 500)
    {
    new cspeed = floatround(value/3200);
    new maxspeed = 83;
    if(cspeed > maxspeed)
    {
    fahrschulfehler[playerid] += 1;
    SendClientMessage(playerid, COLOR_RED, "Achtung! Du fährst zu schnell!");
    SendClientMessage(playerid, COLOR_RED, "Maximale Geschwindkeit: 80 Km/h");
    }
    }
    SavedPOSx[playerid] = xg;
    SavedPOSy[playerid] = yg;
    SavedPOSz[playerid] = zg;
    return 1;
    }

    Moin moin,


    und zwar arbeite ich zurzeit an ein Drogensystem, aber 1 sache Funktioniert nicht. Wenn ich 1 Drogenpflanze anpflanze funkitoniert alles. Doch wenn ich eine 2 anpflanze steht dann wenn ich /drogeernte eingeben "Du bist an keine Drogepflanze"




    Code:
    ocmd:drogepflanzen(playerid,params[])
    {
    if (GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_GREY, "Du musst zu Fuß sein!");
    if (GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid, COLOR_GREY, "Du darfst in kein Gebäude sein!");
    if (SpielerInfo[playerid][pDrogensamen]<9)
    {
    SendClientMessage(playerid, COLOR_GREY,"Du hast nicht genug Samen.");
    return 1;
    }
    if (SpielerInfo[playerid][pDrugsplanted]>5)
    {
    SendClientMessage(playerid,COLOR_RED,"Du kannst nur 6 Drogenpflanzen anpflanzen, ernte zuerst die Anderen!");
    return 1;
    }
    for(new weed = 0; weed < sizeof(WeedInfo); weed++)
    {
    if(WeedInfo[weed][wPlanted] == 0 && WeedInfo[weed][wTime] == 0)
    {
    new Float:X,Float:Y,Float:Z,string2[200],ss[200];
    ApplyAnimation(playerid, "BOMBER","BOM_Plant_In",4.0,0,0,0,0,0);
    GetPlayerPos(playerid, X, Y, Z);
    WeedInfo[weed][wObject] = CreateDynamicObject(3409, X, Y, Z-2.0, 0, 0, 0, 0);
    WeedInfo[weed][wX] = X;
    WeedInfo[weed][wY] = Y;
    WeedInfo[weed][wZ] = Z;
    WeedInfo[weed][wTime] = 25;
    WeedInfo[weed][wPlanted] = 1;
    strmid(WeedInfo[weed][WeedPlanter],SpielerName(playerid), 0, strlen(SpielerName(playerid)), 50);
    format(ss,sizeof(ss),"Canabis-Droge\nPflanzer: %s\nZeit bis Ernte: %d Minuten",SpielerName(playerid),WeedInfo[weed][wTime]);
    WeedInfo[weed][Weedlbl] = Create3DTextLabel(ss,COLOR_WHITE,X,Y,Z,10.0,0,0);
    SpielerInfo[playerid][pDrogensamen]-=9;
    SpielerInfo[playerid][pDrugsplanted]++;
    SetTimerEx("DrogenTime",60000,0,"d",weed);
    SendClientMessage(playerid,COLOR_GREEN,"Du hast erfolgreich eine Droge angepflanzt ( Du musst noch 25 Minuten warten! )");
    format(string2,sizeof(string2),"INSERT INTO `drogen` (`id`,`Pflanzer`,`Time`,`X`,`Y`,`Z`) VALUES ('%d','%s','%d','%f','%f','%f')",weed,WeedInfo[weed][WeedPlanter],WeedInfo[weed][wTime],WeedInfo[weed][wX],WeedInfo[weed][wY],WeedInfo[weed][wZ]);
    mysql_query(string2);
    return 1;
    }
    }
    return 1;
    }


    Drogeernten:

    ocmd:drogeernten(playerid,params[])
    {
    for(new weed = 0; weed < sizeof(WeedInfo); weed++)
    {
    new string2[120];
    if(IsPlayerInRangeOfPoint(playerid,6.0,WeedInfo[weed][wX],WeedInfo[weed][wY],WeedInfo[weed][wZ]))
    {
    if(WeedInfo[weed][wPlanted] == 1)
    {
    if(WeedInfo[weed][wTime] <= 0)
    {
    ApplyAnimation(playerid, "BOMBER","BOM_Plant_In",4.0,0,0,0,0,0);
    DestroyDynamicObject(WeedInfo[weed][wObject]);
    format(query,sizeof(query),"DELETE FROM drogen WHERE id='%i'",weed);
    mysql_query(query);
    WeedInfo[weed][wX] = 0.0;
    WeedInfo[weed][wY] = 0.0;
    WeedInfo[weed][wZ] = 0.0;
    WeedInfo[weed][wPlanted] = 0;
    SendClientMessage(playerid,COLOR_GREEN,"Du hast die Drogenpflanze erfolgreich abgepflanzt!");
    SpielerInfo[playerid][pDrugsplanted]--;
    Delete3DTextLabel(WeedInfo[weed][Weedlbl]);
    return 1;
    }
    else
    {
    format(string2,sizeof(string2),"Deine Pflanze ist noch nicht fertig du musst noch %d Minuten warten.",WeedInfo[weed][wTime]);
    SendClientMessage(playerid, COLOR_RED, string2);
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Hier ist keine Drogepflanze!");
    return 1;
    }
    }
    return 1;
    }


    und der enum:
    enum wInfo
    {
    wPlanted,
    WeedPlanter[MAX_PLAYER_NAME],
    wTime,
    wObject,
    Float:wX,
    Float:wY,
    Float:wZ,
    wWeed,
    Text3D:Weedlbl
    };


    new WeedInfo[1000][wInfo];



    Wenn ihr mehr braucht sagt bescheid

    Hier:
    truckingtor2 = CreateDynamicObject(4084,-595.7999878,-522.5999756,26.2999992,0.0000000,0.0000000,269.9945068); //object(jud_lan) (2)
    truckingtor3 = CreateDynamicObject(4084,-559.7999878,-522.5999756,26.2999992,0.0000000,0.0000000,269.9945068); //object(jud_lan) (4)
    truckingtor4 = CreateDynamicObject(4084,-568.7999878,-522.5999756,26.2999992,0.0000000,0.0000000,269.9945068); //object(jud_lan) (5)
    truckingtor5 = CreateDynamicObject(4084,-577.7999878,-522.5999756,26.2999992,0.0000000,0.0000000,269.9945068); //object(jud_lan) (8)
    truckingtor6 = CreateDynamicObject(4084,-586.7999878,-522.5999756,26.2999992,0.0000000,0.0000000,269.9945068); //object(jud_lan) (9)


    ich habe mal checktrucker ein bisschen umgeschrieben klappt allerdings immer noch nicht:
    public checktrucker()
    {
    if(truckingtime11 == 1)
    {
    }
    else
    {
    }
    if(truckingtime12 == 1)
    {
    MoveObject(truckingtor2, -595.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    MoveObject(truckingtor2, -595.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(truckingtime13 == 1)
    {
    MoveObject(truckingtor3, -559.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    MoveObject(truckingtor3, -559.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(truckingtime14 == 1)
    {
    MoveObject(truckingtor4, -568.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    MoveObject(truckingtor4, -568.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(truckingtime15 == 1)
    {
    MoveObject(truckingtor5, -577.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    MoveObject(truckingtor5, -577.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(truckingtime16 == 1)
    {
    MoveObject(truckingtor6, -586.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    MoveObject(truckingtor6, -586.7999878,-522.5999756,26.2999992, 4.00);
    }
    }


    PS: Das erste tor ist ausgeklammer
    deshalb ist hier if(truckingtime11 == 1)


    {


    }


    else


    {


    }


    nichts drin


    Es kommen alle nachrichten

    Hallo, und zwar sitze ich gerade an einen Trucker Job
    So:


    Als 1 muss man /trucking eingeben und dort erscheint ein DIALOG und dort stehen dann aufträge, und sobald man eion ausgewählt hat sollte sich ein Tor öffnen aber dies tut es nicht hier der code:


    forward checktrucker();

    Das hier in ongamemodeinit
    SetTimer("checktrucker",20,true);


    hier der DIALOG
    if(dialogid == DIALOG_TRUCKING)
    {
    if(response == 1)
    {
    switch(listitem)
    {
    case 0:
    {
    if(truckingtime11 == 0)
    {
    truckingtime1=1;
    truckingtime11=1;
    SetPVarInt(playerid,"Trucking",1);
    SetPVarInt(playerid,"Beladen",0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Gehe nun zum Checkpoint um deinen LKW zu beladen!");
    SetPlayerCheckpointEx(playerid,-571.1071,-555.1445,25.5296,3.0);
    SetVehicleToRespawn(truckerwagen[0]);
    SetVehicleToRespawn(truckerwagen[6]);
    }
    else
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dieser LKW ist schon besetzt!");
    }
    }
    case 1:
    {
    if(truckingtime12 == 0)
    {
    truckingtime2=1;
    truckingtime12=1;
    SetPVarInt(playerid,"Trucking",2);
    SetPVarInt(playerid,"Beladen",0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Gehe nun zum Checkpoint um deinen LKW zu beladen!");
    SetPlayerCheckpointEx(playerid,-571.1071,-555.1445,25.5296,3.0);
    SetVehicleToRespawn(truckerwagen[1]);
    SetVehicleToRespawn(truckerwagen[7]);
    }
    else
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dieser LKW ist schon besetzt!");
    }
    }
    case 2:
    {
    if(truckingtime13 == 0)
    {
    truckingtime3=1;
    truckingtime13=1;
    SetPVarInt(playerid,"Trucking",3);
    SetPVarInt(playerid,"Beladen",0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Gehe nun zum Checkpoint um deinen LKW zu beladen!");
    SetPlayerCheckpointEx(playerid,-571.1071,-555.1445,25.5296,3.0);
    SetVehicleToRespawn(truckerwagen[2]);
    SetVehicleToRespawn(truckerwagen[8]);
    }
    else
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dieser LKW ist schon besetzt!");
    }
    }
    case 3:
    {
    if(truckingtime14 == 0)
    {
    truckingtime4=1;
    truckingtime14=1;
    SetPVarInt(playerid,"Trucking",4);
    SetPVarInt(playerid,"Beladen",0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Gehe nun zum Checkpoint um deinen LKW zu beladen!");
    SetPlayerCheckpointEx(playerid,-571.1071,-555.1445,25.5296,3.0);
    SetVehicleToRespawn(truckerwagen[3]);
    SetVehicleToRespawn(truckerwagen[9]);
    }
    else
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dieser LKW ist schon besetzt!");
    }
    }
    case 4:
    {
    if(truckingtime15 == 0)
    {
    truckingtime5=1;
    truckingtime15=1;
    SetPVarInt(playerid,"Trucking",5);
    SetPVarInt(playerid,"Beladen",0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Gehe nun zum Checkpoint um deinen LKW zu beladen!");
    SetPlayerCheckpointEx(playerid,-571.1071,-555.1445,25.5296,3.0);
    SetVehicleToRespawn(truckerwagen[4]);
    SetVehicleToRespawn(truckerwagen[10]);
    }
    else
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dieser LKW ist schon besetzt!");
    }
    }
    case 5:
    {
    if(truckingtime16 == 0)
    {
    truckingtime6=1;
    truckingtime16=1;
    SetPVarInt(playerid,"Trucking",6);
    SetPVarInt(playerid,"Beladen",0);
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Gehe nun zum Checkpoint um deinen LKW zu beladen!");
    SetPlayerCheckpointEx(playerid,-571.1071,-555.1445,25.5296,3.0);
    SetVehicleToRespawn(truckerwagen[5]);
    SetVehicleToRespawn(truckerwagen[11]);
    }
    else
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dieser LKW ist schon besetzt!");
    }
    }
    }
    }
    }


    und hier der Public
    public checktrucker()
    {
    for(new i = 0; i<MAX_PLAYERS; i++)
    {
    if(GetPVarInt(i,"Trucking")==1)
    {
    truckingtime1=1;
    }
    else
    {
    truckingtime1=0;
    }
    if(GetPVarInt(i,"Trucking")==2)
    {
    truckingtime2=1;
    MoveObject(truckingtor2, -595.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    truckingtime2=0;
    MoveObject(truckingtor2, -595.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(GetPVarInt(i,"Trucking")==3)
    {
    truckingtime3=1;
    MoveObject(truckingtor3, -559.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    truckingtime3=0;
    MoveObject(truckingtor3, -559.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(GetPVarInt(i,"Trucking")==4)
    {
    truckingtime4=1;
    MoveObject(truckingtor4, -568.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    truckingtime4=0;
    MoveObject(truckingtor4, -568.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(GetPVarInt(i,"Trucking")==5)
    {
    truckingtime5=1;
    MoveObject(truckingtor5, -577.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    truckingtime5=0;
    MoveObject(truckingtor5, -577.7999878,-522.5999756,26.2999992, 4.00);
    }
    if(GetPVarInt(i,"Trucking")==6)
    {
    truckingtime6=1;
    MoveObject(truckingtor6, -586.7999878,-522.5999756,16.2999992, 4.00);
    }
    else
    {
    truckingtime6=0;
    MoveObject(truckingtor6, -586.7999878,-522.5999756,26.2999992, 4.00);
    }
    }
    }