SA-MP Forums Archive
Please help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please help (/showthread.php?tid=135602)



Please help - bartje01 - 21.03.2010

Hey guys. I have a question. I am making a turf war system for my rpg server. It should go with the cmd /challenge. But it must ONLY work when you are in the turf .

Like this:
Код:
if (strcmp("/challenge", cmdtext, true, 10) == 0)
	{
  if(PlayerInfo[playerid][Warperm] > 0)
	{
  GangZoneFlashForAll(LspZone,0xFF0000FF);
  PlayerInfo[playerid][Warperm]--;
  }
  	else SendClientMessage(playerid,red,"You don't have any gang perms");

	return 1;
	}
Thats my script but you can do it everywheere.
Can someone script in that you can only do it INSIDE the turf?

I hope so. Thanks anyway


Re: Please help - bartje01 - 21.03.2010

is this hard?