SA-MP Forums Archive
Command don't work (gangwar start) - 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: Command don't work (gangwar start) (/showthread.php?tid=303506)



Command don't work (gangwar start) - DJDosKiller - 13.12.2011

Hello,
I have a german GF edit script(SoL). There is a command that dont work.
No one can help in the german board.
Sry for my bad english.
Here is the command
Код:
	if(strcmp(cmd, "/attack",true)==0)
	{
		if(IsPlayerConnected(playerid))
		{
			new job;
			if(PlayerInfo[playerid][pMember] >0)
			{
				job = PlayerInfo[playerid][pMember];
			}
			if(PlayerInfo[playerid][pLeader] > 0)
			{
				job = PlayerInfo[playerid][pLeader];
			}
			if(job == 5 || job == 6 || job == 12 || job == 13 || job == 14 || job == 15 || job == 16 || job == 17 || job == 19 || job == 23)
			{
				if(GetPlayerVehicleID(playerid) != 0)
				{
					SendClientMessage(playerid, COLOR_GRAD1, "You must go out of the car!");
					return 1;
				}
				new gzone = 255;
				for(new idd; idd<GangZone_Index; idd++)
				{
					if(PlayerToPoint(10, playerid, GangZone[idd][ix], GangZone[idd][iy], GangZone[idd][iz]))
					{
						gzone = idd;
						if(job == GangZone[gzone][owner])
						{
							SendClientMessage(playerid, COLOR_GRAD2, "This zone is already yours!");
							return 1;
						}
						else
						{
							PlayerTakingOverZone(playerid,gzone);
							return 1;
						}
					}
				}
				if(gzone == 255)
				{
					SendClientMessage(playerid,COLOR_GRAD2, "You are not at a Attack point!");
					return 1;
				}
			}
		}
		return 1;
	}
i have translate the SendClientMessage outputs.
i hope someone can help me


Re: Command don't work (gangwar start) - Rob_Maate - 13.12.2011

ew @ strcmp
use zcmd mate, much faster.


AW: Command don't work (gangwar start) - DJDosKiller - 14.12.2011

i have the full gangzone script fetched form the gamemode, here is the pastebin link
http://pastebin.com/xi2x4U58