20.06.2012, 16:07
I did This. but it is not showing zone in map neither capturing:
pawn Код:
#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