Ich habe von meinem Freund ein Script zugeschickt bekommen, und würde gerne wissen wie man ein gangfight startet...+
Das einzigste was ich im script finde ist dies:
} for(new i = 0; i < sizeof(GangfightSystemInfo); i++){ if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid)){ if(IsPlayerInArea(killerid, GangfightSystemInfo[i][MinX],GangfightSystemInfo[i][MinY],GangfightSystemInfo[i][MaxX],GangfightSystemInfo[i][MaxY])){ new Killerteam = PlayerInfo[killerid][pTeam]; new Playerteam = PlayerInfo[playerid][pTeam]; if((GangfightSystemInfo[i][GFOwnerID] == Killerteam && GangfightSystemInfo[i][GFGegnerID] == Playerteam) || (GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam) || killerid == INVALID_PLAYER_ID || GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFOwnerID] == Killerteam || GangfightSystemInfo[i][GFGegnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam){ if(killerid == INVALID_PLAYER_ID || GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFOwnerID] == Killerteam || GangfightSystemInfo[i][GFGegnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam){ if(killerid == INVALID_PLAYER_ID){ if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam]) { GangfightSystemInfo[i][GFGegnerPoints] += 3; return 1; } else if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam]){ GangfightSystemInfo[i][GFOwnerPoints] += 3; return 1; } } else if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam] && GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[killerid][pTeam]){ GangfightSystemInfo[i][GFGegnerPoints] += 3; return 1; } else if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam] && GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[killerid][pTeam]){ GangfightSystemInfo[i][GFOwnerPoints] += 3; return 1; }} if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam]){ GangfightSystemInfo[i][GFGegnerPoints] += 1; } if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam]){ GangfightSystemInfo[i][GFOwnerPoints] += 1; } new zufall = random(5); new OwnerTeamText[20]; if(GangfightSystemInfo[i][GFOwnerID] == 5) { OwnerTeamText = "La Cosa Nostra"; } else if(GangfightSystemInfo[i][GFOwnerID] == 6) { OwnerTeamText = "Yakuza"; } else if(GangfightSystemInfo[i][GFOwnerID] == 15) { OwnerTeamText = "Biker Boys"; } else if(GangfightSystemInfo[i][GFOwnerID] == 17) { OwnerTeamText = "Camorra"; } else if(GangfightSystemInfo[i][GFOwnerID] == 18) { OwnerTeamText = "V.L.Aztecas"; } else if(GangfightSystemInfo[i][GFOwnerID] == 19) { OwnerTeamText = "Grove Street"; } else if(GangfightSystemInfo[i][GFOwnerID] == 20) { OwnerTeamText = "Ballas"; } else if(GangfightSystemInfo[i][GFOwnerID] == 21) { OwnerTeamText = "West Coast Customs"; } else if(GangfightSystemInfo[i][GFOwnerID] == 22) { OwnerTeamText = "Triaden"; } else if(GangfightSystemInfo[i][GFOwnerID] == 23) { OwnerTeamText = "Red Soldiers"; } else if(GangfightSystemInfo[i][GFOwnerID] == 24) { OwnerTeamText = "L.S.Vagos"; } else if(GangfightSystemInfo[i][GFOwnerID] == 25) { OwnerTeamText = "Guerilla"; } else if(GangfightSystemInfo[i][GFOwnerID] == 26) { OwnerTeamText = "Cali Kartell"; } new GegnerTeamText[20]; if(GangfightSystemInfo[i][GFGegnerID] == 5) { GegnerTeamText = "La Cosa Nostra"; } else if(GangfightSystemInfo[i][GFGegnerID] == 6) { GegnerTeamText = "Yakuza"; } else if(GangfightSystemInfo[i][GFGegnerID] == 15) { GegnerTeamText = "Biker Boys"; } else if(GangfightSystemInfo[i][GFGegnerID] == 17) { GegnerTeamText = "Camorra"; } else if(GangfightSystemInfo[i][GFGegnerID] == 18) { GegnerTeamText = "V.L.Aztecas"; } else if(GangfightSystemInfo[i][GFGegnerID] == 19) { GegnerTeamText = "Grove Street"; } else if(GangfightSystemInfo[i][GFGegnerID] == 20) { GegnerTeamText = "Ballas"; } else if(GangfightSystemInfo[i][GFGegnerID] == 21) { GegnerTeamText = "West Coast Customs"; } else if(GangfightSystemInfo[i][GFGegnerID] == 22) { GegnerTeamText = "Triaden"; } else if(GangfightSystemInfo[i][GFGegnerID] == 23) { GegnerTeamText = "Red Soldiers"; } else if(GangfightSystemInfo[i][GFGegnerID] == 24) { GegnerTeamText = "L.S.Vagos"; } else if(GangfightSystemInfo[i][GFGegnerID] == 25) { GegnerTeamText = "Guerilla"; } else if(GangfightSystemInfo[i][GFGegnerID] == 26) { GegnerTeamText = "Cali Kartell"; } if(zufall == 2){ format(string, sizeof(string), "NEWS: Im Kampf um das Gebiet steht es %d (%s) zu %d (%s).", GangfightSystemInfo[i][GFOwnerPoints], OwnerTeamText, GangfightSystemInfo[i][GFGegnerPoints], GegnerTeamText); OOCNews(COLOR_NEWS, string); } format(string, sizeof(string), "[Gangfight] %s hat %s im Gangfight %s gegen %s gekillt.", PlayerName(killerid),PlayerName(playerid), OwnerTeamText, GegnerTeamText); ForAllPlayers(pl) { if(IsPlayerConnected(pl) && PlayerInfo[pl][pTeam] == PlayerInfo[playerid][pTeam]) { SendClientMessage(pl, COLOR_YELLOW, string); } if(IsPlayerConnected(pl) && PlayerInfo[pl][pTeam] == PlayerInfo[killerid][pTeam]) { SendClientMessage(pl, COLOR_YELLOW, string); } } Variable = 1; GameTextForPlayer(killerid, "~g~GANGZONEKILL", 2500, 3); GameTextForPlayer(playerid, "~r~GANGZONEKILL", 2500, 3); return 1; }}}}
Vielleicht kann mir einer von euch helfen.
e/
Habs gefunden nach langer suche close