#include <a_samp>
#define TEAM_PAKISTAN 0
#define TEAM_GERMANY 1
#define TEAM_USA 2
#define TEAM_RUSSIA 3
#define TEAM_INDIA 4
#define YELLOW 0xFFFF00FF
#define GREEN 0x008000FF
#define BLUE 0x0080FFFF
#define RED 0xFF0000FF
#define ORANGE 0xFF8000FF
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Capture Zones By Zohan ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
new Checkpoint[MAX_PLAYERS];
new gangzone;
gangzone = GangZoneCreate(-392.1586, 1499.8591, -263.7490, 1630.3291);
public OnPlayerSpawn()
{
Checkpoint = SetPlayerCheckpoint(playerid, 970.7667, 1976.103, 15, 5);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid,color,"wait 30 seconds");
SetTimerEx("SetZone",30000,false,"i",playerid);
}
return 1;
}
forward SetZone(playerid);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3)
GivePlayerMoney(playerid,3000);
public SetGangZone(playerid)
{
if(gTeam[playerid] == TEAM_PAKISTAN)
{
GangZoneShowForAll(gangzone,GREEN);
}
if(gTeam[playerid] == TEAM_GERMANY)
{
GangZoneShowForAll(gangzone,ORANGE);
}
if(gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone,BLUE);
}
if(gTeam[playerid] == TEAM_RUSSIA)
{
GangZoneShowForAll(gangzone,RED);
}
if(gTeam[playerid] == TEAM_INDIA)
{
GangZoneShowForAll(gangzone,YELLOW);
}
return 1;
}
#endif
#include <a_samp>
#define TEAM_PAKISTAN 0
#define TEAM_GERMANY 1
#define TEAM_USA 2
#define TEAM_RUSSIA 3
#define TEAM_INDIA 4
#define YELLOW 0xFFFF00FF
#define GREEN 0x008000FF
#define BLUE 0x0080FFFF
#define RED 0xFF0000FF
#define ORANGE 0xFF8000FF
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Capture Zones By Zohan ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
new Checkpoint[MAX_PLAYERS];
new gangzone;
gangzone = GangZoneCreate(-392.1586, 1499.8591, -263.7490, 1630.3291);
public OnPlayerSpawn()
{
Checkpoint = SetPlayerCheckpoint(playerid, 970.7667, 1976.103, 15, 5);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid,color,"wait 30 seconds");
SetTimerEx("SetZone",30000,false,"i",playerid);
}
return 1;
}
forward SetZone(playerid);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3)
GivePlayerMoney(playerid,3000);
public SetGangZone(playerid)
{
if(gTeam[playerid] == TEAM_PAKISTAN)
{
GangZoneShowForAll(gangzone,GREEN);
}
if(gTeam[playerid] == TEAM_GERMANY)
{
GangZoneShowForAll(gangzone,ORANGE);
}
if(gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone,BLUE);
}
if(gTeam[playerid] == TEAM_RUSSIA)
{
GangZoneShowForAll(gangzone,RED);
}
if(gTeam[playerid] == TEAM_INDIA)
{
GangZoneShowForAll(gangzone,YELLOW);
}
return 1;
}
#endif
#include <a_samp>
#define TEAM_PAKISTAN 0
#define TEAM_GERMANY 1
#define TEAM_USA 2
#define TEAM_RUSSIA 3
#define TEAM_INDIA 4
#define YELLOW 0xFFFF00FF
#define GREEN 0x008000FF
#define BLUE 0x0080FFFF
#define RED 0xFF0000FF
#define ORANGE 0xFF8000FF
new gTeam[MAX_PLAYERS];
#pragma tabsize 0
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Capture Zones By Zohan ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
new Checkpoint[MAX_PLAYERS];
new gangzone;
public OnGameModeInit()
{
gangzone = GangZoneCreate(-392.1586, 1499.8591, -263.7490, 1630.3291);
return 1;
}
public OnPlayerSpawn(playerid)
{
Checkpoint[playerid] = 1;
SetPlayerCheckpoint(playerid, 970.7667, 1976.103, 15, 5);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] == 1)
{
SendClientMessage(playerid,RED,"wait 30 seconds");
SetTimerEx("SetZone",30000,false,"i",playerid);
}
return 1;
}
forward SetZone(playerid);
public SetZone(playerid)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
GivePlayerMoney(playerid,3000);
SetGangZone(playerid);
return 1;
}
forward SetGangZone(playerid);
public SetGangZone(playerid)
{
if(gTeam[playerid] == TEAM_PAKISTAN)
{
GangZoneShowForAll(gangzone,GREEN);
}
if(gTeam[playerid] == TEAM_GERMANY)
{
GangZoneShowForAll(gangzone,ORANGE);
}
if(gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone,BLUE);
}
if(gTeam[playerid] == TEAM_RUSSIA)
{
GangZoneShowForAll(gangzone,RED);
}
if(gTeam[playerid] == TEAM_INDIA)
{
GangZoneShowForAll(gangzone,YELLOW);
}
return 1;
}
gangzone = GangZoneCreate(-392.1586, 1499.8591, -263.7490, 1630.3291);
SetPlayerCheckpoint(playerid, -392.1586, 1499.8591, -263.7490, 1630.3291);
forward SetPlayerCheckpointArea(playerid, [areasize]) |
new Checkpoint[MAX_PLAYERS];
Checkpoint[playerid] = 1;
SetPlayerCheckpoint(playerid, -316.7369,1594.6285,75.6609,13.9541);
Checkpoint[playerid] = 2;
SetPlayerCheckpoint(playerid, 199.9323,1422.9177,10.5859,88.7674);
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] == 1)
{
SendClientMessage(playerid,RED,"Wait For 30 Sec. Don't leave Marker or Capturing will be Failed");
SetTimerEx("SetZone",30000,false,"i",playerid);
}
else if(Checkpoint[playerid] == 2)
{
SendClientMessage(playerid,RED,"Wait For 30 Sec. Don't leave Marker or Capturing will be Failed");
SetTimerEx("SetZone",30000,false,"i",playerid);
}
return 1;
}
forward SetZone(playerid);
public SetZone(playerid)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
GivePlayerMoney(playerid,3000);
SendClientMessage(playerid,GREEN,"Congratulation! You have Gained 3 Scores & 3000$ Money ");
SetGangZone(playerid);
SetGangZone2(playerid);
return 1;
}
forward SetGangZone(playerid);
public SetGangZone(playerid)
{
if(gTeam[playerid] == TEAM_PAKISTAN)
{
GangZoneShowForAll(gangzone5,GREENA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For Pakistan",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_GERMANY)
{
GangZoneShowForAll(gangzone5,ORANGEA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For Pakistan",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone5,BLUEA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For USA",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_RUSSIA)
{
GangZoneShowForAll(gangzone5,REDA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For RUSSIA",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_INDIA)
{
GangZoneShowForAll(gangzone5,YELLOWA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Satellite For INDIA",pName);
SendClientMessageToAll(0x008000AA,string);
}
return 1;
}
forward SetGangZone2(playerid);
public SetGangZone2(playerid)
{
if(gTeam[playerid] == TEAM_PAKISTAN)
{
GangZoneShowForAll(gangzone6,GREENA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Industry For Pakistan",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_GERMANY)
{
GangZoneShowForAll(gangzone6,ORANGEA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Industry For Pakistan",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone6,BLUEA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Industry For USA",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_RUSSIA)
{
GangZoneShowForAll(gangzone6,REDA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Industry For RUSSIA",pName);
SendClientMessageToAll(0x008000AA,string);
}
if(gTeam[playerid] == TEAM_INDIA)
{
GangZoneShowForAll(gangzone6,YELLOWA);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s has captured Industry For INDIA",pName);
SendClientMessageToAll(0x008000AA,string);
}
return 1;
}