GangZone
#1

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}
};
Reply
#2

You want a Gangzone random or just one ?

Simply create GangZoneCreate when you start random the places.
Reply
#3

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

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.
Reply
#5

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

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 ?
Reply
#7

no in command
Reply
#8

Show me the command ...
Reply
#9

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;
}
Reply
#10

Код:
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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)