SA-MP Forums Archive
where do i put all this - 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: where do i put all this (/showthread.php?tid=533567)



where do i put all this - YanLanger - 25.08.2014

Код:
GZ_ZONE1 = GangZoneCreate(2414,0625,-1750,2539,0625,-1570,3125);
GangZoneShowForAll(GZ_ZONE1, 0x0FD20495);
new GZ_ZONE2;
GZ_ZONE2 = GangZoneCreate(2183,59375,-1496,09375,2300,78125,-1343,75);
GangZoneShowForAll(GZ_ZONE2, 0xAF27A951);
new GZ_ZONE3;
GZ_ZONE3 = GangZoneCreate(1953,125,-1289,0625,2039,0625,-1203,125);
GangZoneShowForAll(GZ_ZONE3, 0xAF27A951);
new GZ_ZONE4;
GZ_ZONE4 = GangZoneCreate(2324,21875,-1152,34375,2523,4375,-1003,90625);
GangZoneShowForAll(GZ_ZONE4, 0xE6E60051);
new GZ_ZONE5;
GZ_ZONE5 = GangZoneCreate(2171,875,-1136,71875,2296,875,-968,75);
GangZoneShowForAll(GZ_ZONE5, 0xE6E60051);
new GZ_ZONE6;
GZ_ZONE6 = GangZoneCreate(2238,28125,-1816,40625,2398,4375,-1710,9375);
GangZoneShowForAll(GZ_ZONE6, 0x00D20051);
new GZ_ZONE7;
GZ_ZONE7 = GangZoneCreate(1585,9375,-1812,5,1878,90625,-1496,09375);
GangZoneShowForAll(GZ_ZONE7, 0x00E1E151);
new GZ_ZONE8;
GZ_ZONE8 = GangZoneCreate(1078,125,-2136,71875,1242,1875,-1921,875);
GangZoneShowForAll(GZ_ZONE8, 0xFFFFFF51);
new GZ_ZONE9;
GZ_ZONE9 = GangZoneCreate(1054,6875,-1578,125,1179,6875,-1375);
GangZoneShowForAll(GZ_ZONE9, 0xFF000051);
new GZ_ZONE10;
GZ_ZONE10 = GangZoneCreate(1308,59375,-1898,4375,1445,3125,-1265,625);
GangZoneShowForAll(GZ_ZONE10, 0x0000FF51);
new GZ_ZONE11;
GZ_ZONE11 = GangZoneCreate(1480,46875,-1468,75,1800,78125,-1445,3125);
GangZoneShowForAll(GZ_ZONE11, 0x0000FF51);
new GZ_ZONE12;
GZ_ZONE12 = GangZoneCreate(1929,6875,-2007,8125,1554,6875,-1832,03125);
GangZoneShowForAll(GZ_ZONE12, 0x0000FF51);
new GZ_ZONE13;
GZ_ZONE13 = GangZoneCreate(1542,96875,-2027,34375,1863,28125,-1890,625);
GangZoneShowForAll(GZ_ZONE13, 0x0000FF51);



Re: where do i put all this - Spanes - 25.08.2014

Under GameModeInit.


Re: where do i put all this - YanLanger - 25.08.2014

but it gives me errros


Re: where do i put all this - Spanes - 25.08.2014

Ok, try put it under "OnPlayerSpawn", also can you show me the errors?


Re: where do i put all this - Twizted - 25.08.2014

What errors does it give you?


Re: where do i put all this - Spanes - 25.08.2014

I know why now, all the things with new gangzone; etc, put them in the top where the new defines should be, try put rest in onplayerconnect, gamemodeinit or onplayerspawn


Re: where do i put all this - YanLanger - 25.08.2014

i did also errors, but what errors under spawn or game mode init>?


Re: where do i put all this - JaKe Elite - 25.08.2014

Put the

pawn Код:
Variable = GangZoneCreate
on the OnGameModeInit

while put the

pawn Код:
GangZoneShowForAll
OnPlayerConnect or OnPlayerSpawn, depends on you.


Re: where do i put all this - Spanes - 25.08.2014

Quote:
Originally Posted by Spanes
Посмотреть сообщение
I know why now, all the things with new gangzone; etc, put them in the top where the new defines should be, try put rest in onplayerconnect, gamemodeinit or onplayerspawn
Did my solution work?


Re: where do i put all this - Mzake - 25.08.2014

Quote:
Originally Posted by _Jake_
Посмотреть сообщение
Put the

pawn Код:
Variable = GangZoneCreate
on the OnGameModeInit

while put the

pawn Код:
GangZoneShowForAll
OnPlayerConnect or OnPlayerSpawn, depends on you.
Shouldnt he let some space before every line? or it will give him Loos identification thing lol
and I See that u resized it ! Awsome + added :
#Adventuretimefan