- 0
BUG la o comanda
-
Similar Content
-
- 14 answers
- 589 views
-
- 4 replies
- 191 views
-
- 1 reply
- 143 views
-
Comanda /spec
By VAurel,
- 4 answers
- 329 views
-
- 4 answers
- 669 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
ShadowFirenze.it
Salut, am o comanda buguita care inca nam reusit sa o rezolv asa ca o postez aici cu speranta ca cineva stie unde ar fi scrisa gresit.
[pawn] if(strcmp(cmd, "/acceptwar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(acceptwar == 1)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 17)
{
new alianta1, accepts;
for(new i; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
alianta1++;
}
}
accepts++;
format(string, sizeof(string), "Leaderul %s a acceptat warul!", sendername);
SendRadioMessage(5, 0x33CCFFAA, string);
SendRadioMessage(17, 0x33CCFFAA, string);
SendRadioMessage(16, 0x33CCFFAA, string);
if(accepts == alianta1/2)
{
acceptwar = 0;
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");
SendClientMessageToAll(COLOR_BLUE,"{EE2C2C}Mafia{D3D3D3}-{97FFFF}VLA{D3D3D3}-{CD3278}Ballas {00FA9A}au acceptat WARUL!");
if(warzone == 1)
{
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona GS-LS!");
GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);
}
else if(warzone == 2)
{
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona BS-LS!");
GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);
}
else
{
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Red Country!");
GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);
}
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|_____WAR Started_____|");
SetTimer("WarOver", 1800000, 0);
TimeLeft = 1800;
wartimer2 = SetTimer("WarTime", 1000, 1);
for(new i;i < MAX_TEAMS;i++)
{
Killing = 0;
}
IsWar = true;
KillTimer(WarRefuseTime);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY," Alianta adversa trebuie sa accepte !");
}
}
else if(acceptwar == 2)
{
if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 18)
{
acceptwar = 0;
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");
SendClientMessageToAll(COLOR_BLUE,"{8B5A2B}Triads-{DBDB70}LSV{D3D3D3}-{66CD00}Grove {00FA9A}au acceptat WARUL!");
if(warzone == 1)
{
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona GS-LS!");
GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);
}
else if(warzone == 2)
{
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona BS-LS!");
GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);
}
else
{
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Red Country!");
GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);
}
SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");
SetTimer("WarOver", 1800000, 0);
TimeLeft = 1800;
wartimer2 = SetTimer("WarTime", 1000, 1);
for(new i;i < MAX_TEAMS;i++)
{
Killing = 0;
}
IsWar = true;
KillTimer(WarRefuseTime);
}
else
{
SendClientMessage(playerid, COLOR_GREY," Alianta adversa trebuie sa accepte !)");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " there wasn't any war proposed");
}
}
return 1;
}[/pawn]
Pentru membri din The Triads - Grove - LSV merge ( 6 - 15 - 18 ), pentru membrii din The Mafia / Ballas / VLA nu merge ( 5 - 16 - 17 )
Link to comment
Share on other sites
2 answers to this question
Recommended Posts