SA-MP Forums Archive
/lspd command - 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: /lspd command (/showthread.php?tid=96228)



/lspd command - pepper - 06.09.2009

works in some locs and sone it don't

Код:
	if(strcmp(cmd, "/lspd", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if(gTeam[playerid] == 2 || IsACop(playerid) || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
			{
			if(PlayerToPoint(5, playerid,233.7147,124.1429,1003.2188) || PlayerToPoint(1, playerid, 255.1717,75.0943,1003.6406) || PlayerToPoint(1, playerid, -1711.9617,1032.4753,17.9141) | PlayerInfo[playerid][pLocal] != 255)
				{
  					if(giveplayerid != INVALID_PLAYER_ID)
		  		{
						TogglePlayerControllable(playerid, false);
						ShowMenuForPlayer(LSPD,playerid);
					}
				}
				else
				{
				  SendClientMessage(playerid, COLOR_GREY, "You are not in the locker room.");
				  return 1;
				}
			}
			else
			{
  				SendClientMessage(playerid, COLOR_GREY, "  You are not a law enforcement official.");
	      return 1;
			}
		}
		return 1;
	}
the 1st 2 cords work but the last one when i go the last cords in server keeps saying im not in a locker room iv tryed diff cords samething even made it a diff command for the other faction with just the -1711.9617,1032.4753,17.9141 cords same thing any ideas?


Re: /lspd command - bristan - 06.09.2009

http://forum.sa-mp.com/index.php?act...vanced;search=