SA-MP Forums Archive
Gang/turf zone help .. ?! - 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/turf zone help .. ?! (/showthread.php?tid=148444)



Gang/turf zone help .. ?! - BigM - 17.05.2010

Hi guys,
I need some help with gang zones,
well i created a turf in las venturas and it is working and all,
i also made a when player kills other player on that turf gang zone
is flashing for all player but i dont know how to do that when he kills
him again on that turf that gang zone changes turf colour.
example: before was orange colour and when someone kills there 2 players
or one player 2 times turf changes to other colour like blue.



Re: Gang/turf zone help .. ?! - BigM - 17.05.2010

Does anyone know how to do this ??


Re: Gang/turf zone help .. ?! - DaneAMattie - 17.05.2010

maybe make a new variable like this:

new KillCount[playerid];

now if that guy is on the gangzone and kills someone then do this:

killcount[playerid]++;

and then make an if state ment on OnPlayerDeath
if(killcount[playerid] == 2)
{
Make it what u want??
and my optional take the killcount back to 0
}


Re: Gang/turf zone help .. ?! - BigM - 17.05.2010

Quote:
Originally Posted by DaneAMattie
maybe make a new variable like this:

new KillCount[playerid];

now if that guy is on the gangzone and kills someone then do this:

killcount[playerid]++;

and then make an if state ment on OnPlayerDeath
if(killcount[playerid] == 2)
{
Make it what u want??
and my optional take the killcount back to 0
}
It doesnt work,i just get 6 errors.


Re: Gang/turf zone help .. ?! - Bomber - 17.05.2010

Show these errors.


Re: Gang/turf zone help .. ?! - BigM - 17.05.2010

pawn Код:
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(6) : error 017: undefined symbol "playerid"
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : error 017: undefined symbol "killcount"
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : warning 215: expression has no effect
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : error 001: expected token: ";", but found "]"
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : error 029: invalid expression, assumed zero
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : fatal error 107: too many error messages on one line



Re: Gang/turf zone help .. ?! - DaneAMattie - 17.05.2010

Quote:
Originally Posted by BigM
pawn Код:
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(6) : error 017: undefined symbol "playerid"
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : error 017: undefined symbol "killcount"
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : warning 215: expression has no effect
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : error 001: expected token: ";", but found "]"
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : error 029: invalid expression, assumed zero
...\Desktop\samp03asvr_R7_win32\gamemodes\test.pwn(76) : fatal error 107: too many error messages on one line
show the source then, else we cant help :/