if(strcmp(cmd, "/takeover", true) == 0)
{
if (PlayerToPoint(3, playerid, 2163.5618,-1675.0001,15.0859) || PlayerToPoint(3, playerid, 2173.1785,-2263.6768,13.3423))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo == 3||PlayerInfo == 3||PlayerInfo == 5||PlayerInfo == 5||PlayerInfo == 6||PlayerInfo == 6||PlayerInfo == 11||PlayerInfo == 11
||PlayerInfo == 12||PlayerInfo == 12||PlayerInfo == 13||PlayerInfo == 13||PlayerInfo == 16||PlayerInfo == 16)
{
SendClientMessageToAll(COLOR_RED, " Gang zona je zauzeta,i borba zavrsava za 10min ! ");
if (PlayerToPoint(3, playerid, 2173.1785,-2263.6768,13.3423))
{
Materijali = GangZoneCreate(2114.500000, -2357.658935, 2258.500000, -2189.658935);
GangZoneShowForPlayer(playerid, Materijali, 0xFFFF00AA);
format(string,sizeof(string), " %s je zauzeo Materijal Zonu! ", sendername);
SendClientMessageToAll(COLOR_RED, string);
SetTimer("RacketOver", 600000, 0);
}
if (PlayerToPoint(3, playerid, 2163.5618,-1675.0001,15.0859))
{
Droga = GangZoneCreate(2110.686767, -1752.192871, 2214.686767, -1624.192871);
GangZoneShowForPlayer(playerid, Droga,0xFFFFFFAA);
format(string,sizeof(string), " %s je zauzeo Droga Zonu! ", sendername);
SendClientMessageToAll(COLOR_RED, string);
SetTimer("RacketOver", 600000, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " ** Nisi u bandi/mafiji !");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " ** Nisi na mjestu za zauzimanje Gang zone ! **");
}
return 1;
}
if(strcmp(cmd, "/capture", true) == 0)
{
if (PlayerToPoint(3, playerid, 2163.5618,-1675.0001,15.0859) || PlayerToPoint(3, playerid, 2173.1785,-2263.6768,13.3423))
{
if (RacketsTime == 1)// ako je gang zone vec /takeover -ana
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayerToPoint(3, playerid, 2173.1785,-2263.6768,13.3423))
{
Materijali = GangZoneCreate(2114.500000, -2357.658935, 2258.500000, -2189.658935);
GangZoneShowForPlayer(playerid, Materijali, 0xFFFF00AA);
format(string,sizeof(string), " %s je preuzeo Materijal Zonu i mora je branit iducih 10min! ", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetTimer("RacketOver", 600000, 0);
}
if (PlayerToPoint(3, playerid, 2163.5618,-1675.0001,15.0859))
{
Droga = GangZoneCreate(2110.686767, -1752.192871, 2214.686767, -1624.192871);
GangZoneShowForPlayer(playerid, Droga,0xFFFFFFAA);
format(string,sizeof(string), " %s je preuzeo Droga Zonu i mora ju branit iducih 10min! ", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetTimer("RacketOver", 600000, 0);
}
}
}
}
return 1;
}i na kraju runde ovo se dobije:
public RacketOver()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
RacketsTime = 0;
GivePlayerMoney(i, 50000);
SendClientMessage(i, COLOR_GREEN, " Dobio si $50 000, 3000 materijala, 100 grama droge i nesto oruzja !");
GivePlayerWeapon(i, 23, 80);
GivePlayerWeapon(i, 29, 2000);
PlayerInfo += 3000;
PlayerInfo += 100;
GangZoneDestroy(Materijali);
GangZoneDestroy(Droga);
}
}e sad mi se javlja ovaj problem.Kada netko zauzme gang zonu,i ja preuzmem od njega,nakon zavrsetka runde svi koji su imali bar 1 u posjedu gang zonu dobiju nagrade,a ja bi htio da samo dobije onaj ko je u posjedu kad runda zavrsi znaci 1 osoba,a ovako svi koji su jednom zauzeli dobiju nagrade...
PLS Hitno je
Hvala!!!