Command don't work (gangwar start)
#1

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
Reply
#2

ew @ strcmp
use zcmd mate, much faster.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)