18.05.2012, 11:21
pawn Код:
new Checkpoint[2],
new gangzone[MAX_PLAYERS];
public OnGameModeInit()
{
gangzone = GangZoneCreate(-385.3699, 1506.446, -256.9133, 1646.58, );
return 1,
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid, COLOR_BLUE,"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_BLUE,"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,
}