[Help]GangzoneFlash - 30 second pickup??
#1

hi I am making a deathmatch server with gangzones to take over
that kind a stuff is new for me i know a few basics to make a gangzone
so i have 5 teams and each team lives on a different place in the map.
each team has his own gangzone on the minimap And color.
but now i have added more gangzones and each team have to take that over
but how i want it?? maybe some pickup were the player have to stand in and then wait for 30 sec or more
to take over that area. and then the gangzonecolor goed to his teamcolor and the other team lost it

i have seen so many forums and wiki doesnt help me out bekoz i dont understand english very well
you will get credits but can someone create an example?

https://sampwiki.blast.hk/wiki/Category:Scripting_Functions
and when i look on this forum i see nothing like this

https://sampforum.blast.hk/showthread.php?tid=109539&langid=4
also a good topic i think, but i cant figure it out how i can make something like that you know?
feel free to help me out thank btw

this is my PAWNcode:
Teams + Color Above OnGamemodeInit
Quote:
//----------------------------------------
#define TEAM_ADMIN 0
#define TEAM_DUTCH 1
#define TEAM_SOVIET 2
#define TEAM_EUROPE 3
#define TEAM_ARABIAN 4
#define TEAM_USA 5
#define COLOR_ORANGE 0xFF8040D1
#define COLOR_RED 0xFF0000D1
#define COLOR_GREEN 0x008000D1
#define COLOR_PURPLE 0x6F003796
#define COLOR_BLUE 0x0000FFD5
#define COLOR_GREY 0xAFAFAFAA

//------------------------------------------
new EUROPE; //TeamBase Gangzone
new DUTCH; //TeamBase Gangzone
new SOVIET; //TeamBase Gangzone
new USA; //TeamBase Gangzone
new ARABIAN; //TeamBase Gangzone
new SHOOTINGAREA; //Gangzone for takin over
new AREA51; //Gangzone for takin over
new GASST; //Gangzone for takin over
Teams At OnGamemodeInit
Quote:

AddPlayerClass(287,1458.8555,2774.5676,10.8203,268 .6033,0,0,0,0,0,0);//DUTCH SKIN
AddPlayerClass(179,-733.4570,1546.6962,38.9877,256.7433,0,0,0,0,0,0);//SOVIET SKIN
AddPlayerClass(285,-226.8243,2709.6995,62.9843,177.3992,0,0,0,0,0,0);//EUROPE SKIN
AddPlayerClass(73,586.3904,870.5453,-42.4973,266.4333,0,0,0,0,0,0); //ARAB SKIN
AddPlayerClass(164,1132.6207,2336.6287,10.8203,177 .7358,0,0,0,0,0,0);//USA SKIN
The gangzones + TeamBases @ Ongamemodeinit
Quote:

DUTCH = GangZoneCreate(1116.829467,2722.811767,1534.208984 ,2882.716064);
SOVIET = GangZoneCreate(-739.766784,1403.571044,-888.861511,1617.94921;
EUROPE = GangZoneCreate(-146.962112,2597.288330,-328.785461,2764.880126);
ARABIAN = GangZoneCreate(505.774688,776.709838,725.529357,96 6.934509);
USA = GangZoneCreate(1165.546142,2167.283935,1065.395507 ,2345.84545;
SHOOTINGAREA = GangZoneCreate(718.112915,1924.960449,641.861389,1 802.849731);
AREA51 = GangZoneCreate(96.898155,1798.687622,390.549957,20 81.966064);
GASST = GangZoneCreate(709.375183,1740.210815,629.269226,1 673.371826);

OnPlayerSpawn
Quote:

GangZoneShowForPlayer(playerid, USA, COLOR_BLUE);
GangZoneShowForPlayer(playerid, ARABIAN, COLOR_PURPLE);
GangZoneShowForPlayer(playerid, SOVIET, COLOR_RED);
GangZoneShowForPlayer(playerid, DUTCH, COLOR_ORANGE);
GangZoneShowForPlayer(playerid, EUROPE, COLOR_GREEN);
GangZoneShowForPlayer (playerid, SHOOTINGAREA, COLOR_GREY);
GangZoneShowForPlayer (playerid, AREA51, COLOR_GREY);
GangZoneShowForPlayer (playerid, GASST, COLOR_GREY);

so wat i need to do? can someone explain what to do?
and what i need?

GangZoneCreate - Create a gangzone
GangZoneDestroy - Destroy a gangzone
GangZoneFlashForAll - Make a gangzone flash for all players
GangZoneFlashForPlayer - Make a gangzone flash for a certain player
GangZoneHideForAll - Hide a gangzone for all players
GangZoneHideForPlayer - Hide a gangzone for a specific player
GangZoneShowForAll - Show a gangzone for all players
GangZoneShowForPlayer - Show a gangzone for a player
GangZoneStopFlashForAll - Stop a gangzone flashing for all players
GangZoneStopFlashForPlayer - Stop a gangzone flashing for a specific player


thank you very much if you wanne help me out with this waiting for response
Reply
#2

anyone know something?
hmmm.. 4 days left i need help so hard xD
waiting for response.

later.
Reply
#3

i got something like this but it will only flash for Dutch team only
when you standing in how to make it for more teams?

above ongamemodeinit i got this
Quote:

forward gangzone1();
new PICKUPSHOOTINGAREA;

public OnGameModeInit i got this
Quote:

SHOOTINGAREA = GangZoneCreate(718.112915,1924.960449,641.861389,1 802.849731);

public OnPlayerSpawn(playerid) i got this
Quote:

GangZoneShowForPlayer(playerid, SHOOTINGAREA, COLOR_WHITE);

on playerpickupickup
Quote:

if(gTeam[playerid] == TEAM_DUTCH)
if ( pickupid == PICKUPSHOOTINGAREA) {
SetTimer("gangzone1",5000,true);
GangZoneFlashForAll(SHOOTINGAREA, COLOR_ORANGE);

and i maked new public somewere in script i got this
Quote:

public gangzone1()
{
GangZoneShowForAll(SHOOTINGAREA,COLOR_ORANGE);
return 1;
}

its works fine for dutch team only but can someone tell me how to put in a team extra
sorry for my bad english


this is my new updated script
it works fine(but dont steel pls)
its my first one
http://pastebin.com/vGUnUFBu

https://sampforum.blast.hk/showthread.php?tid=214011
other little bug in the script
but its little

hope someone respond on this bb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)