GangZone doesn't show - 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: GangZone doesn't show (
/showthread.php?tid=230030)
GangZone doesn't show -
MrND - 22.02.2011
Код:
new gz;
new gz2;
new gz3;
new gz4;
new gz5;
new gz6;
new gz7;
new gz8;
new gz9;
{
gz = GangZoneCreate(39.558700, -1906.561401, 303.558715, -1610.561401); //
gz2 = GangZoneCreate(1010.753906, -2156.936279, 1322.753906, -1948.936279); //
gz3 = GangZoneCreate(608.147583, -1403.756958, 880.147583, -1147.756958); //
gz4 = GangZoneCreate(1141.550537, -929.768249, 1389.550537, -681.768249); //
gz5 = GangZoneCreate(1738.650756, -2110.871093, 1930.650756, -1870.871093); //
gz6 = GangZoneCreate(561.693237, -692.676574, 833.693237, -412.676574); //
gz7 = GangZoneCreate(1374.948486, -1069.761718, 1550.948486, -965.761718); //
gz8 = GangZoneCreate(423.498901, -1584.830688, 527.498901, -1440.830688); //
gz9 = GangZoneCreate(1533.380615, -2408.402587, 1685.380615, -2264.402587); //
return 1;
}
{
GangZoneShowForAll(gz, 0xFFFF0096);//
GangZoneShowForAll(gz2, 0xFFFF0096);//
GangZoneShowForAll(gz3, 0xFFFF0096);//
GangZoneShowForAll(gz4, 0xFFFF0096);//
GangZoneShowForAll(gz5, 0xFFFF0096);//
GangZoneShowForAll(gz6, 0xFFFF0096);//
GangZoneShowForAll(gz7, 0xFFFF0096);//
GangZoneShowForAll(gz8, 0xFFFF0096);//
GangZoneShowForAll(gz9, 0xFFFF0096);//
return 1;
}
What did I make wrong?
Re: GangZone doesn't show -
TheYoungCapone - 22.02.2011
This goes at the top.
Код:
new gz;
new gz2;
new gz3;
new gz4;
new gz5;
new gz6;
new gz7;
new gz8;
new gz9;
This goes under OnGameModeInit
Код:
gz = GangZoneCreate(39.558700, -1906.561401, 303.558715, -1610.561401); //
gz2 = GangZoneCreate(1010.753906, -2156.936279, 1322.753906, -1948.936279); //
gz3 = GangZoneCreate(608.147583, -1403.756958, 880.147583, -1147.756958); //
gz4 = GangZoneCreate(1141.550537, -929.768249, 1389.550537, -681.768249); //
gz5 = GangZoneCreate(1738.650756, -2110.871093, 1930.650756, -1870.871093); //
gz6 = GangZoneCreate(561.693237, -692.676574, 833.693237, -412.676574); //
gz7 = GangZoneCreate(1374.948486, -1069.761718, 1550.948486, -965.761718); //
gz8 = GangZoneCreate(423.498901, -1584.830688, 527.498901, -1440.830688); //
gz9 = GangZoneCreate(1533.380615, -2408.402587, 1685.380615, -2264.402587); //
This goes under OnPlayerConnect use GangZoneShowForPlayer instead of GangZoneShowForAll
Код:
GangZoneShowForPlayer(gz, 0xFFFF0096);//
GangZoneShowForPlayer(gz2, 0xFFFF0096);//
GangZoneShowForPlayer(gz3, 0xFFFF0096);//
GangZoneShowForPlayer(gz4, 0xFFFF0096);//
GangZoneShowForPlayer(gz5, 0xFFFF0096);//
GangZoneShowForPlayer(gz6, 0xFFFF0096);//
GangZoneShowForPlayer(gz7, 0xFFFF0096);//
GangZoneShowForPlayer(gz8, 0xFFFF0096);//
GangZoneShowForPlayer(gz9, 0xFFFF0096);//
Re: GangZone doesn't show -
marinov - 22.02.2011
pawn Код:
GangZoneShowForAll(playerid, gz, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz2, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz3, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz4, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz5, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz6, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz7, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz8, 0xFFFF0096);//
GangZoneShowForPlayer(playerid, gz9, 0xFFFF0096);//
https://sampwiki.blast.hk/wiki/GangZoneShowForPlayer