SA-MP Forums Archive
remove joinarena from this - 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: remove joinarena from this (/showthread.php?tid=491268)



remove joinarena from this - betta - 30.01.2014

how can i remove joinarena from this and make the code work


Код:
public SetPlayerWeapons(playerid)
{
    if(GetPVarInt(playerid, "IsInArena") >= 0) { return 1; }
	ResetPlayerWeapons(playerid);
	for(new s = 0; s < 12; s++)
	{
		if(PlayerInfo[playerid][pGuns][s] > 0 && PlayerInfo[playerid][pAGuns][s] == 0)
		{
			GivePlayerValidWeapon(playerid, PlayerInfo[playerid][pGuns][s], 60000);
		}
	}
	return 1;
}



Re: remove joinarena from this - MP2 - 30.01.2014

Remove this line:

pawn Код:
if(GetPVarInt(playerid, "IsInArena") >= 0) { return 1; }
?


Re: remove joinarena from this - hossamkandil - 30.01.2014

Dont Make The >= to ==


Re: remove joinarena from this - betta - 30.01.2014

what 1 is right to follow