Author Topic: Capture zones  (Read 882 times)

[UDC]ZOHAN[st6]

  • Newbie
  • *
  • Posts: 33
  • dont mess with the_zohan
  • Location: Islambad,Pakistan
    • View Profile
Capture zones
« on: May 17, 2012, 03:13:13 pm »
you guys asked me to make 2 capture zones
i made 10
-army restruant
-snakes farm
-cluckin bell
-abondand gas station
-lost valley
-rusty bridge
-gas station
-oil refinery
-big ear
there will be a checkpoint stay in it for 40 seconds to capture it
right now it is bieng tested
i still have to add rewards 5000$ + 4 score for capture so please wait guys

Share on Bluesky Share on Facebook


Syed_Raza

  • N0 L0vE, JuSt JeAlOuSy
  • Server Owner
  • Junior
  • ******
  • Posts: 66
  • Location: Pakistan
    • View Profile
Re: Capture zones
« Reply #1 on: May 17, 2012, 03:22:04 pm »
so then, why are u waiting. Give me..

[UDC]ZOHAN[st6]

  • Newbie
  • *
  • Posts: 33
  • dont mess with the_zohan
  • Location: Islambad,Pakistan
    • View Profile
Re: Capture zones
« Reply #2 on: May 17, 2012, 03:22:51 pm »
i am testing them and i have to add money and score reward

Robber

  • Server Owner
  • Newbie
  • ******
  • Posts: 4
    • View Profile
Re: Capture zones
« Reply #3 on: May 17, 2012, 03:24:12 pm »
ok :)

Rishabh

  • Newbie
  • *
  • Posts: 12
  • Location: Delhi
    • View Profile
Re: Capture zones
« Reply #4 on: May 17, 2012, 09:52:14 pm »
huh he is not a scripter he is asking ppl to create capture zones on sa-mp forum.........he doesnt even know how to compile a script in pawno....i have every single proof of this thing....

btw Syed see ur pm...

[UDC]ZOHAN[st6]

  • Newbie
  • *
  • Posts: 33
  • dont mess with the_zohan
  • Location: Islambad,Pakistan
    • View Profile
Re: Capture zones
« Reply #5 on: May 17, 2012, 10:05:10 pm »
yup i am not a professional scriptor but i am scripting after 2 years so i dont have software too compile pawn btw i have made zones if they want i will give them

Syed_Raza

  • N0 L0vE, JuSt JeAlOuSy
  • Server Owner
  • Junior
  • ******
  • Posts: 66
  • Location: Pakistan
    • View Profile
Re: Capture zones
« Reply #6 on: May 18, 2012, 09:52:58 am »
Ok give me your capture system. I'll add colours by my self..

Rishabh

  • Newbie
  • *
  • Posts: 12
  • Location: Delhi
    • View Profile
Re: Capture zones
« Reply #7 on: May 18, 2012, 01:35:59 pm »
here use this ======


new Checkpoint[MAX_PLAYERS];
public OnGameModeInit()
{
    gangzone = GangZoneCreate(min_x,min_y,max_x,max_y, );
    return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid,color,"You're capture the zone, please wait 20 seconds");
SetTimerEx("SetZone",20000,false,"i",playerid);
}
return 1;
}
forward SetZone(playerid);
public SetZone(playerid)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
GivePlayerCash(playerid,500);
SendClientMessage(playerid,color,"You've capture the zone and receive 500 $ and 5 score");
if (gTeam[playerid] == TEAM_Latino)
    {
        GangZoneShowForAll(gangzone,TEAM_Latino_COLOR);
    }
    else if (gTeam[playerid] == TEAM_Souviet)
    {
        GangZoneShowForAll(gangzone,TEAK_Souviet_COLOR);
    }

    else if (gTeam[playerid] == TEAM_Arabian)
    {
        GangZoneShowForAll(gangzone, TEAM_Arabian_COLOR);
     }

    else if (gTeam[playerid] == TEAM_USA)
    {
        GangZoneShowForAll(gangzone, TEAM_USA_COLOR);
     }

    else if (gTeam[playerid] == TEAM_Europian)
    {
        GangZoneShowForAll(gangzone, TEAM_Europian_COLOR);
     }

    else if (gTeam[playerid] == TEAM_Japan)
    {
        GangZoneShowForAll(gangzone, TEAM_Japan_COLOR);
     }
    else if (gTeam[playerid] == TEAM_Taliban)
    {
        GangZoneShowForAll(gangzone, TEAM_Taliban_COLOR);
     }
return 1;
}


for the coordinates of xmin/xmax/ymin/ymax/etc use mademan tutorials or use sa-mp debug mode....

Syed_Raza

  • N0 L0vE, JuSt JeAlOuSy
  • Server Owner
  • Junior
  • ******
  • Posts: 66
  • Location: Pakistan
    • View Profile
Re: Capture zones
« Reply #8 on: May 18, 2012, 01:40:35 pm »
ok. i'll try soon. is it tested?

[UDC]ZOHAN[st6]

  • Newbie
  • *
  • Posts: 33
  • dont mess with the_zohan
  • Location: Islambad,Pakistan
    • View Profile
Re: Capture zones
« Reply #9 on: May 18, 2012, 03:23:12 pm »

[UDC]Sachin[ST6]

  • I Am Proud To Be Server Admin
  • Full
  • ***
  • Posts: 100
  • Iam Promoted To Admin Level 3 On 5/16/2012
  • Location: India / Delhi/Rohini/Sec 4 A1/61
    • View Profile
    • Its Gta Samp Server Website

Iam Promoted To helper On
4/25/2012

Iam Promoted To Trial Admin Level 2 On 4/26/2012


Iam Promoted To Admin Level 3 on 5/16/2012

the_pro

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Capture zones
« Reply #11 on: June 06, 2012, 09:45:17 am »
here use this ======


new Checkpoint[MAX_PLAYERS];
public OnGameModeInit()
{
    gangzone = GangZoneCreate(min_x,min_y,max_x,max_y, );
    return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid,color,"You're capture the zone, please wait 20 seconds");
SetTimerEx("SetZone",20000,false,"i",playerid);
}
return 1;
}
forward SetZone(playerid);
public SetZone(playerid)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
GivePlayerCash(playerid,500);
SendClientMessage(playerid,color,"You've capture the zone and receive 500 $ and 5 score");
if (gTeam[playerid] == TEAM_Latino)
    {
        GangZoneShowForAll(gangzone,TEAM_Latino_COLOR);
    }
    else if (gTeam[playerid] == TEAM_Souviet)
    {
        GangZoneShowForAll(gangzone,TEAK_Souviet_COLOR);
    }

    else if (gTeam[playerid] == TEAM_Arabian)
    {
        GangZoneShowForAll(gangzone, TEAM_Arabian_COLOR);
     }

    else if (gTeam[playerid] == TEAM_USA)
    {
        GangZoneShowForAll(gangzone, TEAM_USA_COLOR);
     }

    else if (gTeam[playerid] == TEAM_Europian)
    {
        GangZoneShowForAll(gangzone, TEAM_Europian_COLOR);
     }

    else if (gTeam[playerid] == TEAM_Japan)
    {
        GangZoneShowForAll(gangzone, TEAM_Japan_COLOR);
     }
    else if (gTeam[playerid] == TEAM_Taliban)
    {
        GangZoneShowForAll(gangzone, TEAM_Taliban_COLOR);
     }
return 1;
}


for the coordinates of xmin/xmax/ymin/ymax/etc use mademan tutorials or use sa-mp debug mode....
change it to +500 or it won't give you cash.
and i  suggest you guys to use http://forum.sa-mp.com/showthread.php?t=284371 this filter script.. it would look Cool .
« Last Edit: June 06, 2012, 09:47:25 am by the_pro »