SA-MP Forums Archive
GangZone - 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: GangZone (/showthread.php?tid=383942)



GangZone - benalon - 09.10.2012

Hey, i try to create a pickup in a random place but i need
also the gangzone added in the pickup place ,
so how i do it ?
here's the codes ...,
new Float:FTTSpawns[0][3] =
{
{331.0169,2592.1196,17.4321},
{-36.2954,2349.6096,24.3026},
{549.1324,2273.1812,34.7290},
{-393.5911,2488.7756,41.2797},
{-552.6669,2593.8730,53.9348},
{-246.0845,2580.4900,63.5703}
};


Re: GangZone - CaRa - 09.10.2012

You want a Gangzone random or just one ?

Simply create GangZoneCreate when you start random the places.


Re: GangZone - benalon - 09.10.2012

i want the gangzone place will be in the pickup random spawn place ...


Re: GangZone - CaRa - 09.10.2012

Quote:
Originally Posted by benalon
Посмотреть сообщение
i want the gangzone place will be in the pickup random spawn place ...
So, you want to create a gangzone when the random places starting.

Please post the code when you start the random places.


Re: GangZone - benalon - 09.10.2012

CreatePickup(1279, 1, FTTSpawns[rand][0], FTTRandomSpawns[rand][1], FTTRandomSpawns[rand][2], 0);


Re: GangZone - CaRa - 09.10.2012

Quote:
Originally Posted by benalon
Посмотреть сообщение
CreatePickup(1279, 1, FTTSpawns[rand][0], FTTRandomSpawns[rand][1], FTTRandomSpawns[rand][2], 0);
Where you have this code ? In ongamemodeinit ?


Re: GangZone - benalon - 09.10.2012

no in command


Re: GangZone - CaRa - 09.10.2012

Show me the command ...


Re: GangZone - benalon - 09.10.2012

if(equal(cmd, "/StartFind"))
{
new rand = random(sizeof(FTTSpawns));
if(adminlevel[playerid] < 1) return DenyMessage(playerid, 1);
SendClientMessageToAll(COLOR_ORANGE,"A Money Pickup Create In The Map the first take him get 50000$");
SendClientMessageToAll(COLOR_PURPLE,"a purple gangzone create in the pickup zone");
FTTp = CreatePickup(1274, 23, FTTSpawns[rand][0], FTTSpawns[rand][1], FTTSpawns[rand][2], 0);
findon = 1;
return 1;
}


Re: GangZone - CaRa - 09.10.2012

Код:
if(equal(cmd, "/StartFind"))
{
   new rand = random(sizeof(FTTSpawns));
   if(adminlevel[playerid] < 1) return DenyMessage(playerid, 1);
   SendClientMessageToAll(COLOR_ORANGE,"A Money Pickup Create In The Map the first take him get 50000$");
   SendClientMessageToAll(COLOR_PURPLE,"a purple gangzone create when the pickup zone");
   FTTp = CreatePickup(1274, 23, FTTSpawns[rand][0], FTTSpawns[rand][1], FTTSpawns[rand][2], 0);
   SetPlayerMapIcon(playerid, 15, FTTSpawns[rand][0], FTTSpawns[rand][1], FTTSpawns[rand][2], 20, 0,     MAPICON_GLOBAL_CHECKPOINT); // i added this
   findon = 1;
   return 1;
}
I added in your code a Map Icon when the random place start a map icon will appear in your map.

To add a gangzone is much complicated.

Just read https://sampwiki.blast.hk/wiki/GangZoneCreate ...

(sorry for my english)