[POMOC] /equip

Započeo [YU]Shadowr, Avgust 09, 2011, 21:01:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: GTARP
Detaljii opis problema: E ovako probao sam da /equip moze samo na nekim mestima i to sam napravio i neradi kao da nema to mogu da rade /equip de oce -.-. a ja sam sve stavio PlayerTopoint sve evo code
if(strcmp(cmd, "/equip", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsPlayerInRangeOfPoint(playerid, 5, 311.7139,-1513.5054,24.9219) || IsPlayerInRangeOfPoint(playerid, 5, 254.8788,189.3246,1008.1719)   || IsPlayerInRangeOfPoint(playerid, 5, 257.0423,189.8646,1008.1719)   || IsPlayerInRangeOfPoint(playerid, 5, 248.7969,69.1483,1003.6406)  || IsPlayerInRangeOfPoint(playerid, 5, 2747.8875,-2396.3152,13.6400))
 			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GOLD, "KORISTI: /equip [item number]");
					SendClientMessage(playerid, COLOR_GOLD, "|_______ Jugoslovenska Police Armory _______|");
					SendClientMessage(playerid, COLOR_GRAD1, "| 1: Cadet Patrol		2: Officer Patrol");
					SendClientMessage(playerid, COLOR_GOLD, "| 3: Detective Patrol	4: Motorcyclist Patrol");
					SendClientMessage(playerid, COLOR_BLUE, "| 5: Standard JNA	6: Medium JNA");
					SendClientMessage(playerid, COLOR_GOLD, "| 7: Heavy JNA		8: Sharpshooter JNA");
					SendClientMessage(playerid, COLOR_GOLD, "| 9: Equip Armor+health      10: Ceremonial Uniform");
					SendClientMessage(playerid, COLOR_GOLD, "| 11: Default ((UPOZORENJE: Ovo vas ubije))");
					return 1;
				}
				new item = strval(tmp);
				if (item == 1)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
				        SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 3, 1);
						SafeGivePlayerWeapon(playerid, 24, 400);
						SafeGivePlayerWeapon(playerid, 41, 999);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa standardnom cadet opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
				    }
   				}
				else if (item == 2)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
				        SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 3, 1);
						SafeGivePlayerWeapon(playerid, 29, 600);
						SafeGivePlayerWeapon(playerid, 24, 400);
						SafeGivePlayerWeapon(playerid, 41, 999);
						SafeGivePlayerWeapon(playerid, 25, 50);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa standarnom oficirskom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 3)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
					    SendClientMessage(playerid, COLOR_GOLD, "Koristite kameru da zumirate i f8 da slikate");
					    SafeGivePlayerWeapon(playerid, 43, 1);
					    SafeGivePlayerWeapon(playerid, 24, 100);
						GetPlayerName(playerid, sendername, sizeof(sendername));
  						format(string, sizeof(string), "* %s je uzeo instrumenta koja su mu potrebna da bi postao detektiv.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 4)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 3, 1);
						SafeGivePlayerWeapon(playerid, 24, 400);
						SafeGivePlayerWeapon(playerid, 41, 999);
						SetPlayerSkin(playerid, 284);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je stavio na sebe zastitnu opremu za motor i krenuo u patrolu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 5)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
						SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 17, 5);
				    	SafeGivePlayerWeapon(playerid, 29, 600);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao JNA uniformu i zastitnu opremu i krenuo u patrolu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 6)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
						SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 17, 5);
				    	SafeGivePlayerWeapon(playerid, 31, 600);
 		 				SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao JNA uniformu i stavio na sebe zastitnu opremu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 7)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
		   			    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 16, 5);
					    SafeGivePlayerWeapon(playerid, 27, 100);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao JNA uniformu i stavio na sebe tesku opremu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 8)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 23, 400);
					    SafeGivePlayerWeapon(playerid, 34, 50);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao JNA uniformu i stavio na sebe sharpshooter opremu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 9)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
						SetPlayerArmour(playerid, 100);
    	                SetPlayerHealth(playerid, 100);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je stavio na sebe pancir od Kevlara i pojeo koju krofnu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
				    }
				}
				else if (item == 10)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
			   		 	SafeGivePlayerWeapon(playerid, 23, 400);
				    	SafeGivePlayerWeapon(playerid, 33, 50);
						SetPlayerSkin(playerid, 288);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao svecanu uniformu i opremu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
					else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
			   		 	SafeGivePlayerWeapon(playerid, 23, 400);
				    	SafeGivePlayerWeapon(playerid, 33, 50);
				    	SetPlayerSkin(playerid, 283);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao svecanu uniformu i opremu.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 11)
				{
				    new originalskin = PlayerInfo[playerid][pModel];
					SetPlayerSkin(playerid, originalskin);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GOLD, "   Nemate novca za to!");
					return 1;
				}
			}
			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GOLD, "KORISTI: /equip [item number]");
					SendClientMessage(playerid, COLOR_GOLD, "|_______ Jugoslovenska Police Armory _______|");
					SendClientMessage(playerid, COLOR_GRAD1, "| 1: Intern Surveillance  2: Agent Surveillance");
					SendClientMessage(playerid, COLOR_GOLD, "| 3: Surveillance Camera  4: Covert Surveillance");
					SendClientMessage(playerid, COLOR_BLUE, "| 5: Standard Tactical    6: Medium Tactical");
					SendClientMessage(playerid, COLOR_GOLD, "| 7: Heavy Tactical	    8: Sharpshooter Tactical");
					SendClientMessage(playerid, COLOR_GOLD, "| 9: Equip Armor+health   10: Night Vision Goggles");
					SendClientMessage(playerid, COLOR_GOLD, "| 11: Thermal Goggles     12: Default");
					return 1;
				}
				new item = strval(tmp);
				if (item == 1)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
				        SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 43, 100);
						SafeGivePlayerWeapon(playerid, 3, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa standardnom internom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
				    }
   				}
				else if (item == 2)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
				        SafeResetPlayerWeapons(playerid);
				        SafeGivePlayerWeapon(playerid, 43, 100);
						SafeGivePlayerWeapon(playerid, 24, 100);
						SafeGivePlayerWeapon(playerid, 3, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa standardnom agent opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 3)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 43, 100);
						GetPlayerName(playerid, sendername, sizeof(sendername));
  						format(string, sizeof(string), "* %s je uzeo instrumente i krenuo na posao detektiva.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 4)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 43, 100);
					    SafeGivePlayerWeapon(playerid, 4, 1);
					    SafeGivePlayerWeapon(playerid, 23, 100);
					    SafeGivePlayerWeapon(playerid, 46, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je uzeo neophodne instrumente za prikrivene operacije.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 5)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
						SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 17, 5);
				    	SafeGivePlayerWeapon(playerid, 29, 600);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je uzeo takticku opremu i opremio se sa standardnom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 6)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
						SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 17, 5);
				    	SafeGivePlayerWeapon(playerid, 31, 600);
 	 					SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa srednjom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 7)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
	   				    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 16, 5);
					    SafeGivePlayerWeapon(playerid, 27, 100);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa teskom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 8)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 23, 400);
					    SafeGivePlayerWeapon(playerid, 34, 50);
					    SafeGivePlayerWeapon(playerid, 46, 1);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa sharpshooter opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 9)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
						SetPlayerArmour(playerid, 100);
   		    	        SetPlayerHealth(playerid, 100);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je stavio na sebe pancir od Kevlara i pojeo nekoliko krofni.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
	   				}
				}
				else if (item == 10)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					   	SafeGivePlayerWeapon(playerid, 44, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa dvogledom za nocno osmatranje.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
 					}
				}
				else if (item == 11)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
					    SafeGivePlayerWeapon(playerid, 45, 1);
       					format(string, sizeof(string), "* %s se opremio sa dvogledom za toplotno osmatranje.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 12)
				{
				    new originalskin = PlayerInfo[playerid][pChar];
					SetPlayerSkin(playerid, originalskin);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GOLD, "   Nemate novca za to!");
					return 1;
				}
			}
			return 1;
		}
	}

Dio skripte:/
Slike:/

Tu imate kordinate u skripti de vam je PlayerToPoint de sve treba pa mi napravite kako treba svarno ne svatam -.- :D


EDIT: EDITIRO SAM CODE sada mi ispravite ako mi mozete reci i staje bio problem.

STAVIO SAM OVAJ CODE gore kao sto mozete videt

   if(IsPlayerInRangeOfPoint(playerid, 5, 311.7139,-1513.5054,24.9219) || IsPlayerInRangeOfPoint(playerid, 5, 254.8788,189.3246,1008.1719)   || IsPlayerInRangeOfPoint(playerid, 5, 257.0423,189.8646,1008.1719)   || IsPlayerInRangeOfPoint(playerid, 5, 248.7969,69.1483,1003.6406)  || IsPlayerInRangeOfPoint(playerid, 5, 2747.8875,-2396.3152,13.6400))
         {

I izlaze mi 26 erora -.- . a kada stavim playertopoint onda kao i da nisam stavio i-.-
Poslednja Izmena: Avgust 09, 2011, 21:10:00 POSLE PODNE od Shadowr
//

Pola koda ti je viÅ¡ak ... izvoli preureÄ'eno:

if(strcmp(cmd, "/equip", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsPlayerInRangeOfPoint(playerid, 5, 311.7139,-1513.5054,24.9219) || IsPlayerInRangeOfPoint(playerid, 5, 254.8788,189.3246,1008.1719)   || IsPlayerInRangeOfPoint(playerid, 5, 257.0423,189.8646,1008.1719)   || IsPlayerInRangeOfPoint(playerid, 5, 248.7969,69.1483,1003.6406)  || IsPlayerInRangeOfPoint(playerid, 5, 2747.8875,-2396.3152,13.6400))
 			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GOLD, "KORISTI: /equip [item number]");
					SendClientMessage(playerid, COLOR_GOLD, "|_______ Jugoslovenska Police Armory _______|");
					SendClientMessage(playerid, COLOR_GRAD1, "| 1: Cadet Patrol		2: Officer Patrol");
					SendClientMessage(playerid, COLOR_GOLD, "| 3: Detective Patrol	4: Motorcyclist Patrol");
					SendClientMessage(playerid, COLOR_BLUE, "| 5: Standard JNA	6: Medium JNA");
					SendClientMessage(playerid, COLOR_GOLD, "| 7: Heavy JNA		8: Sharpshooter JNA");
					SendClientMessage(playerid, COLOR_GOLD, "| 9: Equip Armor+health      10: Ceremonial Uniform");
					SendClientMessage(playerid, COLOR_GOLD, "| 11: Default ((UPOZORENJE: Ovo vas ubije))");
					return 1;
				}
				new item = strval(tmp);
				if (item == 1)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
				        SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 43, 100);
						SafeGivePlayerWeapon(playerid, 3, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa standardnom internom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
				    }
   				}
				else if (item == 2)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
				        SafeResetPlayerWeapons(playerid);
				        SafeGivePlayerWeapon(playerid, 43, 100);
						SafeGivePlayerWeapon(playerid, 24, 100);
						SafeGivePlayerWeapon(playerid, 3, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa standardnom agent opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 3)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 43, 100);
						GetPlayerName(playerid, sendername, sizeof(sendername));
  						format(string, sizeof(string), "* %s je uzeo instrumente i krenuo na posao detektiva.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 4)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
					    SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 43, 100);
					    SafeGivePlayerWeapon(playerid, 4, 1);
					    SafeGivePlayerWeapon(playerid, 23, 100);
					    SafeGivePlayerWeapon(playerid, 46, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je uzeo neophodne instrumente za prikrivene operacije.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 5)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
						SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 17, 5);
				    	SafeGivePlayerWeapon(playerid, 29, 600);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je uzeo takticku opremu i opremio se sa standardnom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 6)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
						SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 17, 5);
				    	SafeGivePlayerWeapon(playerid, 31, 600);
 	 					SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa srednjom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 7)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
	   				    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 24, 400);
					    SafeGivePlayerWeapon(playerid, 41, 999);
					    SafeGivePlayerWeapon(playerid, 16, 5);
					    SafeGivePlayerWeapon(playerid, 27, 100);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa teskom opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 8)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
					    SafeResetPlayerWeapons(playerid);
					    SafeGivePlayerWeapon(playerid, 3, 1);
					    SafeGivePlayerWeapon(playerid, 23, 400);
					    SafeGivePlayerWeapon(playerid, 34, 50);
					    SafeGivePlayerWeapon(playerid, 46, 1);
						SetPlayerSkin(playerid, 285);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je obukao takticku opremu i opremio se sa sharpshooter opremom.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 9)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
						SetPlayerArmour(playerid, 100);
   		    	        SetPlayerHealth(playerid, 100);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s je stavio na sebe pancir od Kevlara i pojeo nekoliko krofni.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
	   				}
				}
				else if (item == 10)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
					   	SafeGivePlayerWeapon(playerid, 44, 1);
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* %s se opremio sa dvogledom za nocno osmatranje.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
 					}
				}
				else if (item == 11)
				{
					if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
					{
					    SafeGivePlayerWeapon(playerid, 45, 1);
       					format(string, sizeof(string), "* %s se opremio sa dvogledom za toplotno osmatranje.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
					}
				}
				else if (item == 12)
				{
				    new originalskin = PlayerInfo[playerid][pChar];
					SetPlayerSkin(playerid, originalskin);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GOLD, "   Nemate novca za to!");
					return 1;
				}
			}
			return 1;
		}
	}