Gang Zone - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gang Zone (
/showthread.php?tid=538889)
Gang Zone -
DeadNudock - 24.09.2014
Staff, want a hand hello, have a system of extendable Gang Zone, and I'm trying to fix is the following ..
public tar gz:
Код:
public ElQuebrados(playerid)
{
new FAEmGz;
new FARCEmGz;
FAEmGz = 0;
FARCEmGz = 0;
new string[128];
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerInPlace(i, -1412.9468, 2536.2871, -1577.1643, 2727.0327))
{
if (PlayerInfo[i][pMembro] == 3 || PlayerInfo[i][pLider] == 3)
{
FAEmGz++;
}
else if (PlayerInfo[i][pMembro] == 6 || PlayerInfo[i][pLider] == 6)
{
FARCEmGz++;
}
format(string, 100, "exercito[%d] farc[%d]", FAEmGz, FARCEmGz);
SendClientMessageToAll(-1, string);
if (FARCEmGz != 0)
{
....
}
else if (FAEmGz != 0)
{
....
}
else if (FAEmGz != 0 && FARCEmGz != 0)
{
....
}
else if (FAEmGz == 0 && FARCEmGz == 0)
{
....
}
}
}
return 1;
}
this part here is that this is not working:
Код:
if (IsPlayerInPlace(i, -1412.9468, 2536.2871, -1577.1643, 2727.0327))
{
if (PlayerInfo[i][pMembro] == 3 || PlayerInfo[i][pLider] == 3)
{
FAEmGz++;
}
else if (PlayerInfo[i][pMembro] == 6 || PlayerInfo[i][pLider] == 6)
{
FARCEmGz++;
}
I wanted to type when the person entered the Gangzone, increased more FAEmGz ++; or FARCEmGz ++; so I want to help to see WHAT can I do in this case I think it is not very definite, if you have a person who knows more than me and can help me, tell me the solution please ..?
Re: Gang Zone -
DeadNudock - 24.09.2014

Uppp!