Beiträge von The Sensei


    Server geht an und aus wenn ich starte.



    Hab das mit ++ geändert das andere nicht weis nicht was du meinst.

    Guten Tag,


    ich hatte die Idee das ich ein /acp Befehl Scripte.
    Dieser Soll halt herausschreiben wie oft der oder die Person gebannt/gekickt oder gemutet wurde.




    Script Code: ocmd:acp(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,5)) return SendClientMessage(playerid,ROT,"Zugriff Verweigert");
    new string1[200],string2[200],string3[128],pID,rest[500];
    if(sscanf(params,"uis",pID))return SendClientMessage(playerid,BLAU,"/acp [playerid]");
    if(IsPlayerConnected(pID))
    {
    format(string1, sizeof string1, "Name: %s",SpielerName(pID));
    format(string2, sizeof string2, "Timeban: %s",GetPVarInt(playerid,"Banned?"));
    format(string3, sizeof string3, "");
    format(rest, sizeof rest, "%s\n%s\n%s\n", string1,string2,string3);
    if(!isPlayerAnAdmin(playerid,5)) return ShowPlayerDialog(playerid,DIALOG_ACP,DIALOG_STYLE_MSGBOX,"Admin Control Panel",rest,"Ok","");
    }
    SendClientMessage(playerid,ROT,"Spieler ist nicht Online");
    return 1;
    }
    Beispiel wo er es hochzählen soll
    ocmd:tban(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,2))return SendClientMessage(playerid,ROT,"Rang zu Niedrig.");
    new pID, time, grund[128];
    if(sscanf(params,"uis",pID,time,grund))return SendClientMessage(playerid,BLAU,"/tban [playerid] [zeit] [grund]");
    if(IsPlayerConnected(pID))
    {
    if(time>0&&time<1000)
    {
    new string[128];
    format(string,sizeof(string),"%s wurde von %s für %i Minuten gebannt. Grund: %s",SpielerName(pID),SpielerName(playerid),time,grund);
    SendClientMessageToAll(ROT,string);
    new wert;


    wert=gettime()+(60*time);


    SetPVarInt(pID,"timeban",wert);
    SetTimerEx("WarnTimer2", 250, false, "i", pID);
    SetPVarInt(playerid,"Banned?",++);//<- Da das ++ ist doch hochzählen oder?
    Kick(pID);
    return 1;
    }
    SendClientMessage(playerid,ROT,"Ungültige Zeit.");
    return 1;
    }
    SendClientMessage(playerid,ROT,"Spieler ist nicht online.");
    return 1;
    }


    Bitte helft mir. das ++ bedeutet doch das er was hochzählen soll?

    Guten Tag,


    ich habe ein Problem mit meinen Skins.
    Fehler Code :

    Code
    C:\Users\Patrick\Desktop\GER\GER\GER\gamemodes\LoE.pwn(3300) : error 018: initialization data exceeds declared sizeC:\Users\Patrick\Desktop\GER\GER\GER\gamemodes\LoE.pwn(3307) : error 001: expected token: "}", but found "{"C:\Users\Patrick\Desktop\GER\GER\GER\gamemodes\LoE.pwn(3308) : error 010: invalid function or declarationC:\Users\Patrick\Desktop\GER\GER\GER\gamemodes\LoE.pwn(55664) : warning 219: local variable "check" shadows a variable at a preceding levelC:\Users\Patrick\Desktop\GER\GER\GER\gamemodes\LoE.pwn(65568) : warning 219: local variable "check" shadows a variable at a preceding levelC:\Users\Patrick\Desktop\GER\GER\GER\gamemodes\LoE.pwn(71516) : warning 203: symbol is never used: "M_OnPlayerCommandText"Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase3 Errors.


    Spoiler anzeigen
    new JoinPed[131][1] = {
    {280}, // LSPD 0
    {281}, // LSPD 1
    {282}, // LSPD 2
    {283}, // LSPD 3
    {284}, // LSPD 4
    {285}, // LSPD 5
    {288}, // LSPD 6
    {71}, // LSPD 7
    {166}, // LSPD 8
    {148}, // LSPD 9
    {283}, // SFPD 10
    {280}, // SFPD 11
    {281}, // SFPD 12
    {148}, // SFPD 13
    {287}, // AR14
    {285}, // ARMY 15
    {148}, // ARMY 16
    {70}, // MEDIC 17
    {274}, // MEDIC 18
    {276}, // MEDIC 19
    {127}, // LCN 20
    {126}, // LCN 21
    {125}, // LCN 22
    {124}, // LCN 23
    {113}, // LCN 24
    {111}, // LCN 25
    {98}, // LCN 26
    {93}, // LCN 27
    {169}, // YAKI 28
    {204}, // YAKI 29
    {123}, // YAKI 30
    {122}, // YAKI 31
    {208}, // YAKI 32
    {186}, // YAKI 33
    {120}, // YAKI 34
    {155}, // PRÄSI 35
    {147}, // PRÄSI 36
    {127}, // HITMAN 37
    {126}, // HITMAN 38
    {186}, // HITMAN 39
    {141}, // HITMAN 40
    {93}, // HITMAN 41
    {3}, //Hitman 113//Ab hier Die Hitman Skins als letztes eingefügt
    {7}, //Hitman 114
    {19}, //Hitman 115
    {21}, //Hitman 116
    {22}, //Hitman 117
    {23}, //Hitman 118
    {25}, //Hitman 119
    {97}, //Hitman 120
    {154}, //Hitman 121
    {217}, //Hitman 122
    {12}, //Hitman 123
    {55}, //Hitman 124
    {56}, //Hitman 125
    {90}, //Hitman 126
    {91}, //Hitman 127
    {93}, //Hitman 128
    {190}, //Hitman 129
    {193}, //Hitman 130
    {226}, //Hitman 131
    {187}, // CNN 42
    {188}, // CNN 43
    {93}, // CNN 44
    {240}, // TAXI 45
    {189}, // TAXI 46
    {11}, // TAXI 47
    {59}, // FAHRSCHULE 48
    {60}, // FAHRSCHULE 49
    {150}, // FAHRSCHULE 50
    {76}, // FAHRSCHULE 51
    {100}, // BIKER 52
    {247}, // BIKER 53
    {248}, // BIKER 54
    {254}, // BIKER 55
    {248}, // BIKER 56
    {131}, // BIKER 57
    {102}, // Ballas 58
    {103}, // Ballas 59
    {104}, // Ballas 60
    {114}, // Ballas 61
    {293}, // Ballas 62
    {102}, // Ballas 63
    {293}, // Ballas 64
    {105}, // Groove Street 65
    {106}, // Groove Street 66
    {107}, // Groove Street 67
    {151}, // Groove Street 68
    {185}, // FaF 69
    {23}, // FaF 70
    {50}, // FaF 71
    {193}, // FaF 72
    {192}, // FaF 73
    {108}, // MaraSalvatrucha 74
    {109}, // MaraSalvatrucha 75
    {110}, // MaraSalvatrucha 76
    {226}, // MaraSalvatrucha 77
    {40}, // Groove Street 78
    {97}, // Groove Street 79
    {80}, // Groove Street 80
    {22}, // Groove Street 81
    {173}, // Vatos Locos 82
    {174}, // Vatos Locos 83
    {175}, // Vatos Locos 84
    {214}, // Vatos Locos 85
    {170}, // WCC 86
    {193}, // WCC 87
    {180}, // WCC 88
    {189}, // WCC 89
    {19}, // WCC 90
    {299}, // Wheel 91
    {28}, // Wheel 92
    {29}, // Wheel 93
    {30}, // Wheel 94
    {47}, // Wheel 95
    {277}, // FEUERWEHR 96
    {278}, // FEUERWEHR 97
    {279}, // FEUERWEHR 98
    {272}, // RM 99
    {125}, // RM 100
    {126}, // RM 101
    {255}, // OAMT 102
    {261}, // OAMT 103
    {76}, // OAMT 104
    {224}, //Hacker 105 Frau
    {59}, //Hacker 106
    {65}, //Hacker 108
    {73}, //Hacker 109
    {119}, //Hacker 110
    {122}, //Hacker 111
    {170}, //Hacker 112//Fehler LAUT PAWN
    /*{165}, // FBI 113
    {166}, // FBI 114
    {286}, // FBI 115
    {163}, // FBI 116
    {164}, // FBI 117*/
    //-
    {112} //Hacker 11//Fehler laut pawn
    };//Fehler laut Pawn
    Und das habe ich als letztes gemacht
    if(strcmp(cmd, "/hkleidung", true) == 0)
    {
    if(IsPlayerInFrac(playerid, 8))
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -2160.2542,646.0577,1057.5861))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /hkleidung [Skin Nummer]");
    SendClientMessage(playerid, COLOR_GRAD1, "*Es gibt 18 Skins (Nummer 1-18");
    return 1;
    }
    new skin = strval(tmp);
    if(skin == 1)
    {
    SetPlayerSkin(playerid, 113);
    return 1;
    }
    if(skin == 2)
    {
    SetPlayerSkin(playerid, 114);
    return 1;
    }
    if(skin == 3)
    {
    SetPlayerSkin(playerid, 115);
    return 1;
    }
    if(skin == 4)
    {
    SetPlayerSkin(playerid, 116);
    return 1;
    }
    if(skin == 5)
    {
    SetPlayerSkin(playerid, 117);
    return 1;
    }
    if(skin == 6)
    {
    SetPlayerSkin(playerid, 118);
    return 1;
    }
    if(skin == 7)
    {
    SetPlayerSkin(playerid, 119);
    return 1;
    }
    if(skin == 8)
    {
    SetPlayerSkin(playerid, 120);
    return 1;
    }
    if(skin == 9)
    {
    SetPlayerSkin(playerid, 121);
    return 1;
    }
    if(skin == 10)
    {
    SetPlayerSkin(playerid, 122);
    return 1;
    }
    if(skin == 11)
    {
    SetPlayerSkin(playerid, 123);
    return 1;
    }
    if(skin == 12)
    {
    SetPlayerSkin(playerid, 124);
    return 1;
    }
    if(skin == 13)
    {
    SetPlayerSkin(playerid, 125);
    return 1;
    }
    if(skin == 14)
    {
    SetPlayerSkin(playerid, 126);
    return 1;
    }
    if(skin == 15)
    {
    SetPlayerSkin(playerid, 127);
    return 1;
    }
    if(skin == 16)
    {
    SetPlayerSkin(playerid, 128);
    return 1;
    }
    if(skin == 17)
    {
    SetPlayerSkin(playerid, 129);
    return 1;
    }
    if(skin == 18)
    {
    SetPlayerSkin(playerid, 130);
    return 1;
    }
    if(skin == 6)
    {
    SetPlayerSkin(playerid, 131);
    return 1;
    }
    if(skin <= 0 || skin > 18)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Skin nicht vorhanden!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht am Bestellen-Punkt!");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Hitman!");
    }
    return 1;
    }

    Guten Tag,
    ich habe einen Fehler mit /invite.
    Es kommt laut kumpel immer der spieler ist schon in einer Fraktion.

    Spoiler anzeigen
    if(strcmp(cmd, "/invite", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /invite [playerid/Name]");
    return 1;
    }
    new leader = PlayerInfo[playerid][pLeader];
    new para1 = ReturnUser(tmp);
    if (PlayerInfo[playerid][pLeader] >= 1)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
    {
    if(PlayerInfo[para1][pFrakSperre] == 0 && PlayerInfo[para1][pLevel] >= 3)
    {
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    printf("AdmCmd: %s hat %s in die Fraktion %s eingeladen.", sendername, giveplayer,Fracs[leader-1]);
    format(string, sizeof(string), " Du wurdest in die Fraktion %s von Leader %s eingeladen.",Fracs[leader-1], sendername);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    SendClientMessage(para1, COLOR_GRAD2, " Um die Einladung anzunehmen: /einladung annehmen");
    //SendClientMessage(para1, COLOR_GRAD2, " Um die Einladung abzulehnen: /einladung ablehnen");
    format(string, sizeof(string), " Du hast %s in die Fraktion %s eingeladen.", giveplayer,Fracs[leader-1]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(playerid, COLOR_GRAD2, " Der Spieler muss nun deine Einladung annehmen oder ablehnen.");
    new iyear, imonth,iday;
    getdate(iyear, imonth, iday);
    format(string, sizeof(string), "%s[Level:%d] wurde von %s in die Fraktion %s eingeladen (%d-%d-%d)", giveplayer,PlayerInfo[para1][pLevel],sendername,Fracs[leader-1],imonth,iday,iyear);
    MemberLog(string);
    Eingeladen[para1] = leader;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler hat eine Fraktions-Sperre oder ist noch nicht LvL 3");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist in einer anderen Fraktion oder bereits ein Fraktionsmitglied.");
    return 1;
    }
    }
    }//not connected
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Nur der Leader kann diesen Befehl nutzen!");
    }
    return 1;
    }

    Spoiler anzeigen
    if(strcmp(cmd,"/einladung",true) == 0)
    {
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /einladung [annehmen/ablehnen]");
    return 1;
    }
    if(Eingeladen[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du wurdest in keine Fraktion eingeladen!");
    return 1;
    }
    if(strcmp(tmp,"annehmen",true) == 0)
    {
    if(Eingeladen[playerid] == 1) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(Eingeladen[playerid] == 2) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(Eingeladen[playerid] == 3) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
    else if(Eingeladen[playerid] == 4) { PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
    else if(Eingeladen[playerid] == 5) { PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 258; SetPlayerSkin(playerid, 120); }
    else if(Eingeladen[playerid] == 6) { PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 294; SetPlayerSkin(playerid, 294); }
    else if(Eingeladen[playerid] == 7) { PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; ChosenSkin[playerid] = 164; SetPlayerSkin(playerid, 164); }
    else if(Eingeladen[playerid] == 8) { PlayerInfo[playerid][pTeam] = 8; gTeam[playerid] = 8; ChosenSkin[playerid] = 250; SetPlayerSkin(playerid, 250); }
    else if(Eingeladen[playerid] == 9) { PlayerInfo[playerid][pTeam] = 9; gTeam[playerid] = 9; ChosenSkin[playerid] = 187; SetPlayerSkin(playerid, 187); }
    else if(Eingeladen[playerid] == 10) { PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else if(Eingeladen[playerid] == 11) { PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; ChosenSkin[playerid] = 240; SetPlayerSkin(playerid, 240); }
    else if(Eingeladen[playerid] == 12) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ChosenSkin[playerid] = 118; SetPlayerSkin(playerid, 118); }//Hacker
    else if(Eingeladen[playerid] == 13) { PlayerInfo[playerid][pTeam] = 13; gTeam[playerid] = 13; ChosenSkin[playerid] = 103; SetPlayerSkin(playerid, 103); }//Ballas
    else if(Eingeladen[playerid] == 14) { PlayerInfo[playerid][pTeam] = 14; gTeam[playerid] = 14; ChosenSkin[playerid] = 19; SetPlayerSkin(playerid, 19); }//Groove Street
    else if(Eingeladen[playerid] == 15) { PlayerInfo[playerid][pTeam] = 15; gTeam[playerid] = 15; ChosenSkin[playerid] = 185; SetPlayerSkin(playerid, 185); }//Los Santos Biker Club
    else if(Eingeladen[playerid] == 16) { PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; ChosenSkin[playerid] = 108; SetPlayerSkin(playerid, 108); }//MaraSalvatrucha
    else if(Eingeladen[playerid] == 17) { PlayerInfo[playerid][pTeam] = 17; gTeam[playerid] = 17; ChosenSkin[playerid] = 114; SetPlayerSkin(playerid, 114); }//Varios Los
    else if(Eingeladen[playerid] == 18) { PlayerInfo[playerid][pTeam] = 18; gTeam[playerid] = 18; ChosenSkin[playerid] = 173; SetPlayerSkin(playerid, 173); }//Vatos Locos
    else if(Eingeladen[playerid] == 19) { PlayerInfo[playerid][pTeam] = 19; gTeam[playerid] = 19; ChosenSkin[playerid] = 234; SetPlayerSkin(playerid, 234); }//West Coust Customs
    else if(Eingeladen[playerid] == 20) { PlayerInfo[playerid][pTeam] = 20; gTeam[playerid] = 20; ChosenSkin[playerid] = 220; SetPlayerSkin(playerid, 220); }
    else if(Eingeladen[playerid] == 21) { PlayerInfo[playerid][pTeam] = 21; gTeam[playerid] = 21; ChosenSkin[playerid] = 28; SetPlayerSkin(playerid, 28); } else if(Eingeladen[playerid] == 22) { PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 22; ChosenSkin[playerid] = 274; SetPlayerSkin(playerid, 274); }
    else if(Eingeladen[playerid] == 23) { PlayerInfo[playerid][pTeam] = 23; gTeam[playerid] = 23; ChosenSkin[playerid] = 133; SetPlayerSkin(playerid, 133); }
    else if(Eingeladen[playerid] == 24) { PlayerInfo[playerid][pTeam] = 24; gTeam[playerid] = 24; ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else { return 1; }
    GetPlayerName(playerid,sendername,sizeof(sendername));
    PlayerInfo[playerid][pMember] = Eingeladen[playerid];
    PlayerInfo[playerid][pRank] = 1;
    format(string,sizeof(string)," %s hat die Einladung in die Fraktion %s angenommen!",sendername,Fracs[Eingeladen[playerid]-1]);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pLeader] == Eingeladen[playerid])
    {
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    }
    }
    }
    SetPlayerInterior(playerid,0);
    new rand = random(sizeof(gInviteSpawns));
    SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
    SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    FreezePlayer(playerid);
    SelectChar[playerid] = 255;
    Eingeladen[playerid] = 0;
    SelectCharID[playerid] = PlayerInfo[playerid][pMember];
    SelectCharPlace[playerid] = 1;
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
    SendClientMessage(playerid, COLOR_GRAD5, " Du kannst mit /help deine neuen Fraktionsbefehle betrachten");
    SendClientMessage(playerid, COLOR_LIGHTRED, "* Benutze 'weiter' um dir den Charakter auszusuchen den du gerne benutzen möchtest.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "* Wenn du den richtigen gefunden hast, gib 'fertig' ein.");
    }
    else if(strcmp(tmp,"ablehnen",true) == 0)
    {
    format(string,sizeof(string)," %s hat die Einladung in die Fraktion %s abgelehnt!",sendername,Fracs[Eingeladen[playerid]-1]);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pLeader] == Eingeladen[playerid])
    {
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    }
    }
    }
    Eingeladen[playerid] = 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /einladung [annehmen/ablehnen]");
    }
    return 1;
    }


    Danke für die Hilfe.

    Guten Tag,
    ich suche Ranggrafiken für mein Forum(für einen GTA San Andreas Gameserver).
    Es gibt 7 Gruppen die ich brauche.



    -Administrator Blau
    -V.I.P Lila
    -Projektleiter
    -Head-Admin Rot (eher Dunkel)
    -Normaler Benutzer Ist Egal
    -Globaler Moderator Grün
    -Supporter Gelb
    -[MUSS NICHT]Gesperrte User EGal


    Als Gegenleistung erhält man auf dem Gameserver V.I.P und im Forum auch den Gleichen Status.


    BallasVehs[0] = AddStaticVehicle(409,1108.2559,-305.7929,73.7922,88.0846,85,85,-1); // Ballas Car Limosine
    BallasVehs[1] = AddStaticVehicle(560,1067.2155,-288.4890,73.6973,176.9560,85,85,-1); // Ballas Sultan 1
    BallasVehs[2] = AddStaticVehicle(560,1070.7324,-288.2589,73.6970,178.7860,85,85,-1); // Ballas Sultan 2
    BallasVehs[3] = AddStaticVehicle(560,1074.1233,-288.0482,73.6938,177.8250,85,85,-1); // Ballas Sultan 3
    BallasVehs[4] = AddStaticVehicle(560,1077.4114,-288.2624,73.6936,178.9399,85,85,-1); // Ballas Sultan 4
    BallasVehs[5] = AddStaticVehicle(541,1045.1967,-308.4539,73.6180,179.5802,85,85,-1); // Ballas Bullet 1
    BallasVehs[6] = AddStaticVehicle(541,1019.3036,-305.7567,73.6179,179.4973,85,85,-1); // Ballas Bullet 2
    BallasVehs[7] = AddStaticVehicle(487,1112.1222,-299.1849,78.9708,90.7688,85,85,-1); // Ballas Maverick
    BallasVehs[8] = AddStaticVehicle(468,1122.8419,-339.8326,73.7680,92.9974,85,85,-1); // Ballas Sanchez
    BallasVehs[9] = AddStaticVehicle(468,1122.9290,-343.4342,73.6913,87.8777,85,85,-1); // Ballas Sanchez 2
    BallasVehs[10] = AddStaticVehicle(468,1122.7675,-341.0161,73.7426,90.7616,85,85,-1); // Ballas Sanchez 3
    BallasVehs[11] = AddStaticVehicle(468,1122.8193,-342.5386,73.7096,92.2062,85,85,-1); // Ballas Sanchez 4


    Ok sry.
    sind tzd. 15 Warning´s bei new BallasVehs[13]; steht jetzt new BallasVehs[12];


    BallasVehs[0] = AddStaticVehicle(409,1108.2559,-305.7929,73.7922,88.0846,85,85,-1,-1,-1); // Ballas Car Limosine
    BallasVehs[1] = AddStaticVehicle(560,1067.2155,-288.4890,73.6973,176.9560,85,85,-1,-1,-1); // Ballas Sultan 1
    BallasVehs[2] = AddStaticVehicle(560,1070.7324,-288.2589,73.6970,178.7860,85,85,-1,-1,-1); // Ballas Sultan 2
    BallasVehs[3] = AddStaticVehicle(560,1074.1233,-288.0482,73.6938,177.8250,85,85,-1,-1,-1); // Ballas Sultan 3
    BallasVehs[4] = AddStaticVehicle(560,1077.4114,-288.2624,73.6936,178.9399,85,85,-1,-1,-1); // Ballas Sultan 4
    BallasVehs[5] = AddStaticVehicle(541,1045.1967,-308.4539,73.6180,179.5802,85,85,-1,-1,-1); // Ballas Bullet 1
    BallasVehs[6] = AddStaticVehicle(541,1019.3036,-305.7567,73.6179,179.4973,85,85,-1,-1,-1); // Ballas Bullet 2
    BallasVehs[7] = AddStaticVehicle(487,1112.1222,-299.1849,78.9708,90.7688,85,85,-1,-1,-1); // Ballas Maverick
    BallasVehs[8] = AddStaticVehicle(468,1122.8419,-339.8326,73.7680,92.9974,85,85,-1,-1,-1); // Ballas Sanchez
    BallasVehs[9] = AddStaticVehicle(468,1122.9290,-343.4342,73.6913,87.8777,85,85,-1,-1,-1); // Ballas Sanchez 2
    BallasVehs[10] = AddStaticVehicle(468,1122.7675,-341.0161,73.7426,90.7616,85,85,-1,-1,-1); // Ballas Sanchez 3
    BallasVehs[11] = AddStaticVehicle(468,1122.8193,-342.5386,73.7096,92.2062,85,85,-1,-1,-1); // Ballas Sanchez 4

    Tag,



    Ich habe hier ein Paar Ballas Vehs


    Code :
    new BallasVehs[13];//Oben im Script


    BallasVehs[1] = AddStaticVehicleEx(409,1108.2559,-305.7929,73.7922,88.0846,85,85); // Ballas Car Limosine
    BallasVehs[2] = AddStaticVehicleEx(560,1067.2155,-288.4890,73.6973,176.9560,85,85); // Ballas Sultan 1
    BallasVehs[3] =AddStaticVehicleEx(560,1070.7324,-288.2589,73.6970,178.7860,85,85); // Ballas Sultan 2
    BallasVehs[4] = AddStaticVehicleEx(560,1074.1233,-288.0482,73.6938,177.8250,85,85); // Ballas Sultan 3
    BallasVehs[5] = AddStaticVehicleEx(560,1077.4114,-288.2624,73.6936,178.9399,85,85); // Ballas Sultan 4
    BallasVehs[6] = AddStaticVehicleEx(541,1045.1967,-308.4539,73.6180,179.5802,85,85); // Ballas Bullet 1
    BallasVehs[7] = AddStaticVehicleEx(541,1019.3036,-305.7567,73.6179,179.4973,85,85); // Ballas Bullet 2
    BallasVehs[8] = AddStaticVehicleEx(487,1112.1222,-299.1849,78.9708,90.7688,85,85); // Ballas Maverick
    BallasVehs[9] = AddStaticVehicleEx(468,1122.8419,-339.8326,73.7680,92.9974,85,85); // Ballas Sanchez
    BallasVehs[10] = AddStaticVehicleEx(468,1122.9290,-343.4342,73.6913,87.8777,85,85); // Ballas Sanchez 2
    BallasVehs[11] = AddStaticVehicleEx(468,1122.7675,-341.0161,73.7426,90.7616,85,85); // Ballas Sanchez 3
    BallasVehs[12] = AddStaticVehicleEx(468,1122.8193,-342.5386,73.7096,92.2062,85,85); // Ballas Sanchez 4


    Fehler Code :


    Naja immoment testen ich und ein Kumpel dieses System er hat Heal hack bei mod - S0beit an. Naja das System wird aktiviert und am ende steht da Nicht Vorhanden.


    Dann wenn man wärend es Aktiviert ist was Isst oder /sethp Id 100 macht wird es erkannt.
    Wie kann ich es machen, das es wenn er kein leben Verliert das es dann erkannt wird, bzw. was denken sie wie ich es am Cleversten machen kann.
    ErikSon:

    Wie würdest du denn so ein System angehen.


    Hab es versucht wie aus Tutorial.


    ocmd:modcheck(playerid,params[])
    {
    new targetid,string[256];
    if(sscanf(params,"u",targetid))return SendClientMessage(playerid,0xFF5B00FF,"** Benutzung: /modcheck <Spieler-Name bzw. Spieler-ID>");
    if(!IsPlayerConnected(targetid))return SendClientMessage(playerid,0xFF0000FF,"** Der Spieler ist nicht verbunden");
    new Float:px,Float:py,Float:pz,player[MAX_PLAYER_NAME],target[MAX_PLAYER_NAME];
    GetPlayerName(playerid,player,sizeof(player));
    GetPlayerName(targetid,target,sizeof(target));
    GetPlayerPos(targetid,px,py,pz);
    format(string,sizeof(string),"[ModCheck] Du wirst nun vom Teammitglied '%s' (ID: %i) auf Godmode überprüft.",player,playerid);
    SendClientMessage(targetid,0x6FABFFFF,string);
    SendClientMessage(targetid,0x6FABFFFF,"[ModCheck] Solltest du versuchen, den Check zu umgehen, wirst du permanent vom Server gesperrt!");
    SendClientMessage(targetid,0x6FABFFFF,"[ModCheck] Du wirst nun überprüft, bitte habe einen Moment Geduld...");
    SetPlayerHealth(targetid,100);
    SetPlayerArmour(targetid,0);
    CreateExplosion(px, py, pz, 12, 10.0);
    SetTimerEx("check",1500,false,"dd",playerid,targetid);
    return 1;
    }


    public check(playerid,targetid)
    {
    new target[MAX_PLAYER_NAME],Float:nh,string[256];
    if(!IsPlayerConnected(targetid))return SendClientMessage(playerid,0xFF0000FF,"** Der Spieler ist nicht verbunden");
    GetPlayerName(targetid,target,sizeof(target));
    GetPlayerHealth(targetid,nh);
    SendClientMessage(targetid,0x6FABFFFF,"[ModCheck] Der Check wurde erfolgreich beendet!");
    SendClientMessage(targetid,0x6FABFFFF,"[ModCheck] Das Ergebnis wurde dem Teammitglied übermittelt.");
    format(string,sizeof(string),"[ModCheck] Du hast den Spieler '%s' (ID: %i) auf Godmode überprüft.",target,targetid);
    SendClientMessage(playerid,0x6FABFFFF,string);
    SendClientMessage(playerid,0x6FABFFFF,"[ModCheck] Ergebnis:");
    if(nh == 100) {
    SendClientMessage(playerid,0x6FABFFFF,"[ModCheck] Godmode: {00FF00}Vorhanden{FFFFFF}!");
    SetPlayerHealth(targetid,100);
    } else {
    SendClientMessage(playerid,0x6FABFFFF,"[ModCheck] Godmode: {FF0000}Nicht vorhanden{FFFFFF}!");
    SetPlayerHealth(targetid,100);
    }
    return 1;
    }