Gang Zone Bug! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gang Zone Bug! (
/showthread.php?tid=165355)
Gang Zone Bug! -
Saurik - 04.08.2010
Hey there guys!
I have this problem where the same team can take over a zone multiple times. Can someone make it so : If one team takes over, they cant take it over again unless some other team takes it over.
Here is my code
http://pastebin.com/axTLPbKL
Re: Gang Zone Bug! -
Saurik - 04.08.2010
up! getting flooded here
lol
Re: Gang Zone Bug! -
Hiddos - 04.08.2010
Why is everybody bumping without even waiting 30 minutes ¬_¬
Tried something like 'if(takeover[i][team] == gTeam[playerid]) return SendClientMessage(bla, 0x00ff00ff,"Eijot")'
Also, it ain't a bug. How can something be a bug when you haven't even scripted it.
Re: Gang Zone Bug! -
Saurik - 04.08.2010
true that, technically not a bug..
also where exactly do i use ur code, it think it wont let a certain team take over all the time
Re: Gang Zone Bug! -
Hiddos - 04.08.2010
Well I'm unsure what codes and variable stuff you're using but you could try placing it after you're checking if he's in a vehicle:
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) return 0;
if(takeover[i][team] == gTeam[playerid]) { SendClientMessage(playerid, COLOR_JUMPINGJACKFLASH, "Holidays come, and then they go. There's nothing new today, just another memory."); break; }
if(takeover[i][team] == 1 && gTeam[playerid] == USA || takeover[i][team] == 2 && gTeam[playerid] == RUSSIA || takeover[i][team] == 3 && gTeam[playerid] == FRANCE || takeover[i][team] == 4 && gTeam[playerid] == VIETNAM)
Re: Gang Zone Bug! -
Saurik - 04.08.2010
that didnt help