Das kenne ich schon Allerdings möchte ich es so haben das es ohne den Schwarzen Buttons Funktioniert Quasi nach dem Login ein SetPlayerCameraPos Kommt und ein SendClientMessage Bitte wähle deinen skin aus mit einer Bestimmten taste kann man dann die Skins tauschen
Beiträge von Devel1982
-
-
Hey, ich kenn mich noch nicht ganz so gut aus mit Pawno schaffe aber schon einiges aber eins bekomme ich bis jetzt noch nicht hin .. ich möchte ein Script haben das man nach dem Einloggen sich einen Skin ausuchen kann es sollen Bestimmte skins seinen so ca 8 Stück diese sollen per SetPlayerCameraPos Sichtbar sein und mit einer Taste Wechselbar sein beim drücken von Enter oder Leertaste sollten diese Ausgewählt werden und Gesettet werden Wie mache ich sowas ?
Mfg
-
Ohne den Code können wir auch nix machen
-
Ahh Danke dir Jetzt weiß ich weiter
-
Hey ich Bearbeite derzeit das Autohaus von ETB
// Die ShowCars. Struktur: ModelID, x, y, z, a, color1, color2, preis, name
Nur was meinen die mit "A" xyz weiß ich aber "a" ?
{586,-1655.2209,1203.9518,20.6685,317.3647,122,1, 17000, "Wayfarer"}
-
-
Edit Fehelr behoben Lässt sich COmpailen Allerdings laggt mein Server nun beim Spawnen man Fällt erstmal 3 Sek aus der Luft und wird danach erst Gespawnt Nun bei AntiDeAMX liegt angeblich ein Fehler
Code
Alles anzeigenFunction OnGameModeInit() { SendRconCommand ( "loadfs SanIsland"); SendRconCommand ( "loadfs Wheel"); ShowPlayerMarkers(0); TextBus = Create3DTextLabel("{00FFFF}-- Linie LS --{FFFFFF}\n Einsteigen Bitte!",COLOR_ORANGE,30.0,40.0,50.0,30,0,0); ConnectNPC("Bus_LS","Bus_LS");//Das erste BulletLS steht für den Namen hier im Script, das 2te für den Namen der .rec Datei car_Bus_LS = car_Bus_LS = CreateVehicle(437, 1000.0,1000.0, 1000.0, 0.0, 10, 1, -1);//car_BulletLS ist der Name des Autos mit dem der Bot fahrt, Die Positionen von CreateVehicle sind egal, // Neon { for(new i = 0; i < MAX_VEHICLES; i++) { new NeonDatei[64]; format(NeonDatei,sizeof(NeonDatei),"/Neons/%d.ini", i); if (fexist(NeonDatei)) { if(strcmp(dini_Get(NeonDatei, "Farbe"), "DunkelBlau", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Rot", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gruen", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Weiss", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Lila", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18651,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18651,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gelb", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Tuerkis", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "HellBlau", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Pink", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Orange", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "HellGruen", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gold", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } } } return 1; } AntiDeAMX2(); // Angeblich sei hier Fehler warning 225: unreachable code AllowFireCMD(); START_FRAC(); SetTimer("OnFireUpdate", 500, 1); SetTimer("autofire", 150000, 1); SetTimer("Hostname", 5000, 1); SetTimer("UpdateCameras",CAMERA_INTERVAL,1); SetTimer("wantedabzug",900000,true); //SetTimer("baustelle", 1200000, 1); DestroyObject(35); SetTimer("Autofire", 2400000, 1); ResetElevatorQueue(); Elevator_Initialize(); Fight_Init(); SetWeather(2); noooc = 0; SetNameTagDrawDistance(55.0); ManualVehicleEngineAndLights(); // Das ist ein Teil aus meinen On Game Mode Init
dies nicht ganz so RIchtig ich hab 2 Erros
-
Hey, ich hab ein Neon System mit Speicherung nun möchte ich das Ganze gerne ins Gamemode einbauen "Vorher FIlterscript"
Nun ich hab Versucht das Ganze unter OnGameModeInit zu Setzen aber dies Klappte nicht die Ganzen Anderen Sachen DIalog Befehl etc hab ich Bereits eingebaut nur hier Scheitere ich
Wie muss ich den Code Bearbeiten das ich ihn unter OnGameModeInit Setzen kann ?
Code
Alles anzeigenpublic OnFilterScriptInit() { print("\n--------------------------------------"); print("NeonSystem mit Speicherung by Soldtodie"); print("--------------------------------------\n"); for(new i = 0; i < MAX_VEHICLES; i++) { new NeonDatei[64]; format(NeonDatei,sizeof(NeonDatei),"/Neons/%d.ini", i); if (fexist(NeonDatei)) { if(strcmp(dini_Get(NeonDatei, "Farbe"), "DunkelBlau", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Rot", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gruen", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Weiss", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Lila", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18651,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18651,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gelb", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Tuerkis", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "HellBlau", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Pink", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Orange", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "HellGruen", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gold", false) == 0) { new Float:x,Float:y,Float:z; AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0); AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0); } } } return 1; }
-
Hey ich hab Schonmal auf RPG Citygesehen das Jemand Wasser gemappt hatte welches Objekt Nimmt man da ? Oder macht man da "SetObjectMaterial" ?
-
wie hast du die Minimap gemacht ? :o
-
Die slebe ID ? Der Invite Dialog hat ID "DIALOG_INVITE" oder giebt es noch was anderes ?
-
Ich versuche schon seit Stunden nen Invite Dialog zu Machen Statt /einladung Annehmen er Funktiniert auch Wunderbar Allerdings wenn sich nen Spieler neu Regestriert Steht dort "niemand hsat dich eingeladen
Code
Alles anzeigenif(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][pLevel] < 3) { SendClientMessage(playerid, COLOR_GRAD1, " Der Spieler braucht mindestens Level 3 um Invitet zu werden !"); return 1; } if(PlayerInfo[para1][pFrakSperre] == 0) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); printf("SERVER: %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); ShowPlayerDialog(playerid, DIALOG_INVITE, DIALOG_STYLE_MSGBOX, "Einladung", "Fraktions Einladung", "Annehmen", "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, " Warte, bis der Spieler die Einladung angenommen/abgelehnt hat."); 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 Fraktionssperre!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Der ausgewählte Spieler, ist bereits in einer Fraktion/Familie."); return 1; } } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " Nur Der Leader kann Members aufnehmen!"); } return 1; } 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, "Niemand hat dich eingeladen!!"); return 1; } if(strcmp(tmp,"annehmen",true) == 0) { if(Eingeladen[playerid] == 1) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 282; SetPlayerSkin(playerid, 282); } else if(Eingeladen[playerid] == 2) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); } else if(Eingeladen[playerid] == 3) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 283; SetPlayerSkin(playerid, 283); } 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); }//Triaden else if(Eingeladen[playerid] == 13) { PlayerInfo[playerid][pTeam] = 13; gTeam[playerid] = 13; ChosenSkin[playerid] = 105; SetPlayerSkin(playerid, 105); }//Grove Street else if(Eingeladen[playerid] == 14) { PlayerInfo[playerid][pTeam] = 14; gTeam[playerid] = 14; ChosenSkin[playerid] = 102; SetPlayerSkin(playerid, 102); }//Ballas else if(Eingeladen[playerid] == 15) { PlayerInfo[playerid][pTeam] = 15; gTeam[playerid] = 15; ChosenSkin[playerid] = 185; SetPlayerSkin(playerid, 185); }//Biker Club else if(Eingeladen[playerid] == 16) { PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; ChosenSkin[playerid] = 108; SetPlayerSkin(playerid, 108); }//Los Santos Vagos else if(Eingeladen[playerid] == 17) { PlayerInfo[playerid][pTeam] = 17; gTeam[playerid] = 17; ChosenSkin[playerid] = 114; SetPlayerSkin(playerid, 114); }//Varios Los Aztecas else if(Eingeladen[playerid] == 18) { PlayerInfo[playerid][pTeam] = 18; gTeam[playerid] = 18; ChosenSkin[playerid] = 173; SetPlayerSkin(playerid, 173); }//Los Santos Rifa 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] = 277; SetPlayerSkin(playerid, 277); } 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][pFrakSperre] = 90000; 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_LIGHTBLUE, "--------------->Du hast nun 25 Spielstunden eine Fraktionssperre!<---------------"); 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; } if(dialogid == DIALOG_INVITE) { if(response) { OnPlayerCommandText(playerid,"/einladung annehmen"); } else { OnPlayerCommandText(playerid,"/einladung ablehnen"); } return 1; }
" Und dann bleibt die Regestrierung hängen wieso ist das so ? Das ergiebt Null sinn