SA-MP Forums Archive
gang zone problem - 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)
+--- Thread: gang zone problem (/showthread.php?tid=540283)



gang zone problem - BlackEvils - 03.10.2014

hey i have create a my personal gang system i add capture with gang zones here can found my script http://www.solidfiles.com/d/25369a3391/gamemodes.rar it don't have errors it have only some warings but this not make the problem the problem is on‌playerconnect = show gang zone for all every time a player join to my server the gang zone back to the original color how i can set to don't change the color of gang zone


Re: gang zone problem - Su37Erich - 03.10.2014

You are using:
pawn Код:
GangZoneShowForAll(vagos, 0xFFFF0096); //vagos
    GangZoneShowForAll(grove, 0x00800096); //grove
    GangZoneShowForAll(ballasga, 0x93116F96); //ballas
    GangZoneShowForAll(MAFIAga, 0x0000FF96); //mafia
Use GangZoneShowForPlayer instead
Note: Do you understand that if you use "gang zone show for all when OnPlayerConnect is called = on player connect" will show the zone with that color for all the players?
Use the logic :P
pawn Код:
GangZoneShowForPlayer(playerid, vagos, 0xFFFF0096); //vagos
    GangZoneShowForPlayer(playerid, grove, 0x00800096); //grove
    GangZoneShowForPlayer(playerid, ballasga, 0x93116F96); //ballas
    GangZoneShowForPlayer(playerid, MAFIAga, 0x0000FF96); //mafia



Re: gang zone problem - ThunderX - 04.10.2014

try follow what Su37Erich say may it work


Re: gang zone problem - BlackEvils - 04.10.2014

Quote:
Originally Posted by Su37Erich
Посмотреть сообщение
You are using:
pawn Код:
GangZoneShowForAll(vagos, 0xFFFF0096); //vagos
    GangZoneShowForAll(grove, 0x00800096); //grove
    GangZoneShowForAll(ballasga, 0x93116F96); //ballas
    GangZoneShowForAll(MAFIAga, 0x0000FF96); //mafia
Use GangZoneShowForPlayer instead
Note: Do you understand that if you use "gang zone show for all when OnPlayerConnect is called = on player connect" will show the zone with that color for all the players?
Use the logic :P
pawn Код:
GangZoneShowForPlayer(playerid, vagos, 0xFFFF0096); //vagos
    GangZoneShowForPlayer(playerid, grove, 0x00800096); //grove
    GangZoneShowForPlayer(playerid, ballasga, 0x93116F96); //ballas
    GangZoneShowForPlayer(playerid, MAFIAga, 0x0000FF96); //mafia
yes but now all the player have a differt color of gang zones i want all see the colors