28.02.2015, 10:38
Hello i am making a capturable zone system i followed this tutorial everything working fine :
https://sampforum.blast.hk/showthread.php?tid=370571
But the problem is when i reconnect zone color reset but when i try to capture zone it says zone already captured by your team, so my question is is there any way zone color stays the same even after reconnect?
this is my GangZoneShowForPlayer :
Its in onplayerconnect, i tryed to put this code in onplayerspawn but color rested after death:
I know the above code not correct it set zone color to white everytime i connect, want you guys to help me
https://sampforum.blast.hk/showthread.php?tid=370571
But the problem is when i reconnect zone color reset but when i try to capture zone it says zone already captured by your team, so my question is is there any way zone color stays the same even after reconnect?
this is my GangZoneShowForPlayer :
Its in onplayerconnect, i tryed to put this code in onplayerspawn but color rested after death:
PHP код:
GangZoneShowForPlayer(playerid, GangZone[TownHall], -1);
GangZoneShowForPlayer(playerid, GangZone[RaceTrack], -1);
GangZoneShowForPlayer(playerid, GangZone[SuperMarket], -1);
GangZoneShowForPlayer(playerid, GangZone[CargoShip], -1);
GangZoneShowForPlayer(playerid, GangZone[SkyScraper], -1);
GangZoneShowForPlayer(playerid, GangZone[SecretHideout], -1);
GangZoneShowForPlayer(playerid, GangZone[BmxYard], -1);
GangZoneShowForPlayer(playerid, GangZone[GasStation], -1);
GangZoneShowForPlayer(playerid, GangZone[LightHouse], -1);
GangZoneShowForPlayer(playerid, GangZone[HugeMansion], -1);