GangZones 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)
+--- Thread: GangZones Help.. (
/showthread.php?tid=508949)
GangZones Help.. -
Galletziz - 24.04.2014
pawn Код:
OnGameModeInit()
{
zonagrove = GangZoneCreate(2429.166, -1729.235, 2528.039, -1634.489);
zonaballas = GangZoneCreate(2083.108, -1748.974, 2178.178, -1630.541);
zonavagos = GangZoneCreate(2159.164, -1152.865, 2288.461, -1010.746);
zonalocotes = GangZoneCreate(1619.162, -2171.382, 1820.712, -2092.427);
GangZoneShowForAll(zonagrove,0xC0C0C096);
GangZoneShowForAll(zonaballas,0xC0C0C096);
GangZoneShowForAll(zonavagos,0xC0C0C096);
GangZoneShowForAll(zonalocotes,0xC0C0C096);
return 1;
}
Why i can't see the color of zones?? this function don't works in gamemodeint(); ? the compiler don't give me erros..
Re: GangZones Help.. -
JeaSon - 24.04.2014
fixed check this
pawn Код:
OnGameModeInit()
{
zonagrove = GangZoneCreate(2429.166, -1729.235, 2528.039, -1634.489);
zonaballas = GangZoneCreate(2083.108, -1748.974, 2178.178, -1630.541);
zonavagos = GangZoneCreate(2159.164, -1152.865, 2288.461, -1010.746);
zonalocotes = GangZoneCreate(1619.162, -2171.382, 1820.712, -2092.427);
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForAll(zonagrove,0xC0C0C096);
GangZoneShowForAll(zonaballas,0xC0C0C096);
GangZoneShowForAll(zonavagos,0xC0C0C096);
GangZoneShowForAll(zonalocotes,0xC0C0C096);
return 1;
}
Re: GangZones Help.. -
Galletziz - 24.04.2014
Quote:
Originally Posted by Namer
fixed check this
pawn Код:
OnGameModeInit() { zonagrove = GangZoneCreate(2429.166, -1729.235, 2528.039, -1634.489); zonaballas = GangZoneCreate(2083.108, -1748.974, 2178.178, -1630.541); zonavagos = GangZoneCreate(2159.164, -1152.865, 2288.461, -1010.746); zonalocotes = GangZoneCreate(1619.162, -2171.382, 1820.712, -2092.427); return 1; }
public OnPlayerSpawn(playerid) { GangZoneShowForAll(zonagrove,0xC0C0C096); GangZoneShowForAll(zonaballas,0xC0C0C096); GangZoneShowForAll(zonavagos,0xC0C0C096); GangZoneShowForAll(zonalocotes,0xC0C0C096); return 1; }
|
not, cuz when the player death and respawn.. if the Gangzone was been caputured and the color of it have changed
the player that has spawned, return to see it with the color assigned.. i can solve with bolean variable and istruction
if put it in on player spawn (like iszonecaptured)?
Re: GangZones Help.. -
JeaSon - 24.04.2014
then add it under onplayerConnect then
pawn Код:
public OnPlayerConnect(playerid)
{
GangZoneShowForAll(zonagrove,0xC0C0C096);
GangZoneShowForAll(zonaballas,0xC0C0C096);
GangZoneShowForAll(zonavagos,0xC0C0C096);
GangZoneShowForAll(zonalocotes,0xC0C0C096);
return 1;
}
Re: GangZones Help.. -
Galletziz - 24.04.2014
Is the same
![undecided](images/smilies/neutral.gif)
if someone that was connected before of another player that have captured the zone, he will see the zone not captured.. lol, i try with booleans.
Re: GangZones Help.. -
JeaSon - 24.04.2014
try this tutorial
https://sampforum.blast.hk/showthread.php?tid=453013
Re: GangZones Help.. -
Galletziz - 24.04.2014
Anyways thanks for your help.
(Y)