1o1 Invite

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Tag Breadfish Community habe gestern etwas hilfe vom Jeffry bekommen es ging um einen 1o1 invite undannehmen Befehl allerdings wenn er stirbtspawnt der Ja wieder an der AddPlayerClass stelle sprich Spawn das will ich nicht -.- kann ma Jemand helfen ? :o

    ocmd:1o1invite(playerid,params[])
    {
    new id,str[128];
    if(sscanf(params,"u",id))return SendClientMessage(playerid,COLOR_GREY,"/1o1invite [ID / Teil des Namens]");
    format(str,sizeof(str),"{00B2EE}%s hat dich zum 1o1 Invitet Tippe [/annehmen1o1]",PlayerName(playerid));
    SendClientMessage(id,COLOR_RED,str);
    format(str,sizeof(str),"{00B2EE}Du hast %s eingeladen",PlayerName(id));
    SendClientMessage(playerid,COLOR_RED,str);
    Einladung[id] = 1;
    Einladung[playerid] = 1;
    return 1;
    }
    ocmd:annehmen1o1(playerid,params[])
    {
    new id,str[128];
    if(sscanf(params,"u",id))return SendClientMessage(playerid,COLOR_GREY,"/annehmen1o1 [ID / Teil des Namens]");
    if(Einladung[playerid] != 1)return SendClientMessage(playerid,COLOR_GREY,"Du wurdes zu keinem 1o1 Invitet");
    if(Einladung[id] != 1)return SendClientMessage(playerid,COLOR_GREY,"Der Spieler hat dich nicht Invitet");
    format(str,sizeof(str),"{00B2EE}%s hat dein 1o1 Invite angenommen",PlayerName(playerid));
    SendClientMessage(id,COLOR_GREY,str);
    format(str,sizeof(str),"{00B2EE}Du hast %s´s Invite angenommen",PlayerName(id));
    SendClientMessage(playerid,COLOR_GREY,str);
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    GivePlayerWeapon(id, 24, 1337);
    GivePlayerWeapon(id, 25, 1337);
    GivePlayerWeapon(id, 33, 1337);
    SetPlayerVirtualWorld(playerid, playerid+10);
    SetPlayerVirtualWorld(id, playerid+10);
    SetPlayerInterior(playerid, 6);
    SetPlayerInterior(id, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    SetPlayerPos(id, 774.213989,-48.924297,1000.585937);
    return 1;
    }

  • Unter den Includes:
    new inDuel[MAX_PLAYERS];


    ocmd:annehmen1o1(playerid,params[])
    {
    new id,str[128];
    if(sscanf(params,"u",id))return SendClientMessage(playerid,COLOR_GREY,"/annehmen1o1 [ID / Teil des Namens]");
    if(Einladung[playerid] != 1)return SendClientMessage(playerid,COLOR_GREY,"Du wurdes zu keinem 1o1 Invitet");
    if(Einladung[id] != 1)return SendClientMessage(playerid,COLOR_GREY,"Der Spieler hat dich nicht Invitet");
    format(str,sizeof(str),"{00B2EE}%s hat dein 1o1 Invite angenommen",PlayerName(playerid));
    SendClientMessage(id,COLOR_GREY,str);
    format(str,sizeof(str),"{00B2EE}Du hast %s´s Invite angenommen",PlayerName(id));
    SendClientMessage(playerid,COLOR_GREY,str);
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    GivePlayerWeapon(id, 24, 1337);
    GivePlayerWeapon(id, 25, 1337);
    GivePlayerWeapon(id, 33, 1337);
    SetPlayerVirtualWorld(playerid, playerid+10);
    SetPlayerVirtualWorld(id, playerid+10);
    SetPlayerInterior(playerid, 6);
    SetPlayerInterior(id, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    SetPlayerPos(id, 774.213989,-48.924297,1000.585937);
    inDuel[playerid] = playerid+10;
    inDuel[id] = playerid+10;
    return 1;
    }


    Beim Beenden des Duels:
    inDuel[playerid] = 0;
    inDuel[id] = 0;


    Und bei OnPlayerSpawn:
    if(inDuel[playerid] > 0)
    {
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    SetPlayerVirtualWorld(playerid, inDuel[playerid]);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    }

  • meine DM Arenen sind ganz anders auch aufgebaut könnte JKa code schicken


    /Edit zum 2 mal :D


    Dein Code Funkt. zwar Leider fliege ich aus der Welt X( und eine andere dm arena kann man auch betreten ist zwar nicht so schlimm aber, ich möchte zumindest das ich nicht aus der welt fliege xD

  • Nein O.o bleibt eigentlich standard auf null doch ich habs getestet ich war in der arena hab mir meine HP auf 0 gesettet und zack flog ich aus der welt der spawnt mich für ne sekunde in die arena aber flieg dann doch instand heraus

  • if(inDuel[playerid] > 0)
    {
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    SetPlayerVirtualWorld(playerid, inDuel[playerid]);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    }


    new ppname[MAX_PLAYER_NAME],file[250],clanname3d[50];
    GetPlayerName(playerid,ppname,sizeof(ppname));
    format(file,sizeof(file),"/Clans/%s.cfg",(ppname));


    if(dini_Exists(file))
    {
    format(clanname[playerid], 32, dini_Get(file,"Clan"));
    clanstate[playerid] = dini_Int(file,"Rang");


    if(labels[playerid] != Text3D:-1) Delete3DTextLabel(labels[playerid]);
    labels[playerid] = Text3D:-1;


    if(clanstate[playerid] == 3)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Leader {EEEEEE}",clanname[playerid]);
    }
    else if(clanstate[playerid] == 1)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Member {EEEEEE}",clanname[playerid]);
    }
    labels[playerid] = Create3DTextLabel(clanname3d,-1,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(labels[playerid], playerid, 0.0, 0.0, 0.5);
    }
    }



    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){
    Dm[ii]++;
    }
    }
    }
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    format(String,sizeof(String),"/DEAGLE: %d - /DM: %d - /1O1: %d - /SNIPER: %d - /TEAMDM: %d - /INSEL: %d - KEIN MODUS: %d",Dm[0],Dm[1],Dm[2],Dm[4],Dm[5],Dm[6],Dm[8]);
    TextDrawSetString(Textdraw[3],String);
    if(DM[playerid][8] == 1){
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }else if(DM[playerid][0] == 1){
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][1] == 1){
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][2] == 1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++){
    if(one[playerid][i] == 1){
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }else if(DM[playerid][5] != 0){
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][4] == 1){
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][6] == 1){
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][3] ==1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    GivePlayerWeapon(playerid,33,1337);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    SetPlayerVirtualWorld(playerid, playerid+10);


    }
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason){


    new text[128];
    new Float:Health;
    GetPlayerHealth(killerid, Health);
    SetPlayerHealth(killerid, Health+100);
    if(killerid == INVALID_PLAYER_ID) return 1;
    if(playerid == INVALID_PLAYER_ID) return 1;
    SendDeathMessage(killerid, playerid, reason);
    KillStreak[killerid]++;
    KillStreak[playerid] = 0;
    PlayerInfo[killerid][pCash] += 1000;
    PlayerInfo[killerid][pWanteds] ++;
    PlayerInfo[killerid][pKills] ++;
    PlayerInfo[playerid][pDeaths] ++;
    PlayerPlaySound(killerid,17802,0.0,0.0,0.0);
    if(DM[playerid][4] == 1) PlayerInfo[killerid][pCash] += 500;
    if(PlayerInfo[killerid][pWanteds] < 6){
    GameTextForPlayer(killerid, "~g~+1 kill", 3000, 3);
    }
    if(PlayerInfo[killerid][pWanteds] >= 6){
    PlayerInfo[killerid][pWanteds] = 0;
    PlayerInfo[killerid][pLevel] ++;
    format(text,sizeof(text),"~n~~n~~w~Level Up!~n~~g~Neues Level %d",PlayerInfo[killerid][pLevel]);
    GameTextForPlayer(killerid, text, 4000, 3);
    }
    if(KillStreak[killerid] >= 3){
    format(text,sizeof(text),"[KILLSTREAK] %s hat einen 3-er Killstreak! Er bekommt nun wieder 100 HP!",PlayerName(killerid));
    SendClientMessageToAll(COLOR_WHITE,text);
    SetPlayerHealth(killerid,100);
    KillStreak[killerid] = 0;
    }




    format(text, sizeof(text), "~r~Du wurdest von %s gekillt.", PlayerName(killerid));
    GameTextForPlayer(playerid, text, 3000, 3);
    return 1;


    }
    public OnPlayerText(playerid, text[])
    {
    if(GetPVarInt(playerid,"Mute") != 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist gemutet");
    return 0;
    }
    return 1;
    }

  • //...
    }else if(DM[playerid][3] ==1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    GivePlayerWeapon(playerid,33,1337);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    SetPlayerVirtualWorld(playerid, playerid+10);
    }

    //Hier einfügen:
    if(inDuel[playerid] > 0)
    {
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    SetPlayerVirtualWorld(playerid, inDuel[playerid]);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    }
    return 1;
    }
    Versuche es mal, indem du das inDuel-Zeug ganz unten hinschreibst.
    Schau mal ob es dann klappt. Zuvor scheint mir das den Klammern zufolge möglicherweise nicht an der richtigen Stelle zu sein.

  • Versthe nicht gerade was du meinst ? kann dir nicht ganz folgen wo soll ich wat hinpackem, ._.


    /edit


    habs gemacht Funktionmiert spawne dann wieder an der AddPlayerClass ganz Normal am Spawn und dank dem alles buggen meine ganzen arenen -.-

  • Es ging doch um den Spawn nach dem Duel, was hat das mit den DM Zonen zu tun?
    An sich kann der Code, den du bei OnPlayerSpawn eingefügt hast so einen Fehler nicht hervorrufen, das würde keinen Sinn machen. Da musst du etwas anderes verbogen haben, dass sich das auf die DM Zonen (!= Duel?) auswirkt.


    Möglicherweise setzt du auch die Variablen von den DM Zonen oder dem Duel nicht richtig (ggf. zurück). Poste einfach mal dein ganzes OnPlayerSpawn, dann kann man das mal debuggen, was da eigentlich vor sich geht.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • hab das Backup wiederhergestellt vielleicht kommste damit dann so besser zurecht Jenachdem doch hier das Komplette OnPlayerSpawn :


    public OnPlayerSpawn(playerid){
    {


    new ppname[MAX_PLAYER_NAME],file[250],clanname3d[50];
    GetPlayerName(playerid,ppname,sizeof(ppname));
    format(file,sizeof(file),"/Clans/%s.cfg",(ppname));


    if(dini_Exists(file))
    {
    format(clanname[playerid], 32, dini_Get(file,"Clan"));
    clanstate[playerid] = dini_Int(file,"Rang");


    if(labels[playerid] != Text3D:-1) Delete3DTextLabel(labels[playerid]);
    labels[playerid] = Text3D:-1;


    if(clanstate[playerid] == 3)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Leader {EEEEEE}",clanname[playerid]);
    }
    else if(clanstate[playerid] == 1)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Member {EEEEEE}",clanname[playerid]);
    }
    labels[playerid] = Create3DTextLabel(clanname3d,-1,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(labels[playerid], playerid, 0.0, 0.0, 0.5);
    }
    }



    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){
    Dm[ii]++;
    }
    }
    }
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    format(String,sizeof(String),"/Deagle: %d - /Dm: %d - /1o1: %d - /Sniper: %d - /Teamdm: %d - /Insel: %d - Kein Modus: %d",Dm[0],Dm[1],Dm[2],Dm[3],Dm[4],Dm[5],Dm[6],Dm[8]);
    TextDrawSetString(Textdraw[3],String);
    if(DM[playerid][8] == 1){
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }else if(DM[playerid][0] == 1){
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][1] == 1){
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][2] == 1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++){
    if(one[playerid][i] == 1){
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }else if(DM[playerid][5] != 0){
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][4] == 1){
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][6] == 1){
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);


    }
    return 1;
    }


    /edit


    ich meinte den Spawn wenn User auf den Server Connecten nicht den Duel Spawn^.^

  • Versuche es so:
    public OnPlayerSpawn(playerid)
    {
    new ppname[MAX_PLAYER_NAME],file[250],clanname3d[50];
    GetPlayerName(playerid,ppname,sizeof(ppname));
    format(file,sizeof(file),"/Clans/%s.cfg",(ppname));

    if(dini_Exists(file))
    {
    format(clanname[playerid], 32, dini_Get(file,"Clan"));
    clanstate[playerid] = dini_Int(file,"Rang");

    if(labels[playerid] != Text3D:-1) Delete3DTextLabel(labels[playerid]);
    labels[playerid] = Text3D:-1;

    if(clanstate[playerid] == 3)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Leader {EEEEEE}",clanname[playerid]);
    }
    else if(clanstate[playerid] == 1)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Member {EEEEEE}",clanname[playerid]);
    }
    labels[playerid] = Create3DTextLabel(clanname3d,-1,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(labels[playerid], playerid, 0.0, 0.0, 0.5);
    }

    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++)
    {
    for(new ii = 0; 9 > ii; ii++)
    {
    if(DM[i][ii] == 1)
    {
    Dm[ii]++;
    }
    }
    }
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    format(String,sizeof(String),"/Deagle: %d - /Dm: %d - /1o1: %d - /Sniper: %d - /Teamdm: %d - /Insel: %d - Kein Modus: %d",Dm[0],Dm[1],Dm[2],Dm[3],Dm[4],Dm[5],Dm[6],Dm[8]);
    TextDrawSetString(Textdraw[3],String);
    if(DM[playerid][8] == 1)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(DM[playerid][0] == 1)
    {
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid][1] == 1)
    {
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid][2] == 1)
    {
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++)
    {
    if(one[playerid][i] == 1)
    {
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }
    else if(DM[playerid][5] != 0)
    {
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid][4] == 1)
    {
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid][6] == 1)
    {
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    if(inDuel[playerid] > 0)
    {
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    SetPlayerVirtualWorld(playerid, inDuel[playerid]);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    }
    return 1;
    }