Gang/turf zone help .. ?!
#1

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.
Reply
#2

Does anyone know how to do this ??
Reply
#3

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
}
Reply
#4

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.
Reply
#5

Show these errors.
Reply
#6

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
Reply
#7

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)