[Help]/oprema
#1

Bye. I use CLRP GameMode. I edited the command / equipment (to provide additional weapons). When LAPD my work / equipment, but the FBI and Swta We are reluctant. Open the dialog, and I choose the equipment and not for it. IDs are not the same dialogue. The Pawn has no error. What is the matter?

Код:
		if(dialogid == 57)
		{
		    if(response)
		    {
	   			if (listitem == 0)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
				    {
					    if(PlayerInfo[playerid][pRank] >= 1)
					    {
					 	   	SafeResetPlayerWeapons(playerid);
							GivePlayerWeapon(playerid, 43, 500);
							SetPlayerSkin(playerid,166);
							GivePlayerWeapon(playerid, 44, 1);
							GivePlayerWeapon(playerid, 23, 75);
				            SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
							SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	      					CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo uzeo Spiunsku opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
				    }
	   			}
				else if (listitem == 1)
				{
	    			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
				    {
					    if(PlayerInfo[playerid][pRank] >= 1)
					    {
						    SafeResetPlayerWeapons(playerid);
							GivePlayerWeapon(playerid, 24, 75);
							SetPlayerSkin(playerid,163);
							GivePlayerWeapon(playerid, 29, 150);
							GivePlayerWeapon(playerid, 25, 20);
			                SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
							SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	      					CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo uzeo Standardnu opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
				else if (listitem == 2)
				{
	    			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
					    {
						    SafeResetPlayerWeapons(playerid);
						    GivePlayerWeapon(playerid, 24, 100);
						    GivePlayerWeapon(playerid, 43, 500);
						    SetPlayerSkin(playerid,286);
						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	        				CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
		  					format(string, sizeof(string), "* %s je upravo uzeo forenzicku opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
				else if (listitem == 3)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
			 	   	{
						    SafeResetPlayerWeapons(playerid);
						    GivePlayerWeapon(playerid, 24, 75);
						    GivePlayerWeapon(playerid, 25, 50);
						    GivePlayerWeapon(playerid, 29, 120);
						    GivePlayerWeapon(playerid, 31, 200);
						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	            			CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo uzeo Profesionalnu opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
				else if (listitem == 4)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
			 	   	{
						    GivePlayerWeapon(playerid, 24, 75);
						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	            			CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo obukao Pancir na sebe, i pojeo krafnu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
			}
		}
		if(dialogid == 22)
		{
         if(response)
          {
             if(listitem == 0)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
			 	   	{
						    SafeResetPlayerWeapons(playerid);
						    GivePlayerWeapon(playerid, 24, 75);
						    GivePlayerWeapon(playerid, 25, 50);
						    GivePlayerWeapon(playerid, 29, 120);
						    GivePlayerWeapon(playerid, 31, 300);
						    GivePlayerWeapon(playerid, 17, 10);
						    GivePlayerWeapon(playerid, 43,  1);
  						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	            			CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo uzeo Specijalnu opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
				else if (listitem == 1)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
			 	   	{
						    SafeResetPlayerWeapons(playerid);
						    GivePlayerWeapon(playerid, 24, 75);
						    GivePlayerWeapon(playerid, 34, 100);
						    GivePlayerWeapon(playerid, 44, 1);
						    GivePlayerWeapon(playerid, 3,  1);
						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	            			CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo uzeo Snajpersku opremu opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
				else if (listitem == 2)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
			 	   	{
						    SafeResetPlayerWeapons(playerid);
						    GivePlayerWeapon(playerid, 24, 75);
						    GivePlayerWeapon(playerid, 29, 120);
						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerSkin(playerid,284);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	            			CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo uzeo pilotsku opremu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
				else if (listitem == 3)
				{
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					{
					    if(PlayerInfo[playerid][pRank] >= 1)
			 	   	{
						    GivePlayerWeapon(playerid, 24, 75);
						    SetPlayerHealth(playerid, 100);
						    SetPlayerArmour(playerid, 100.0);
						    SetPlayerAttachedObject( playerid, 0, 373, 1, 0.297996, 0.013084, -0.177937, 72.374824, 27.943737, 34.667213, 1.000000, 1.000000, 1.000000 ); // armour - Armour
	            			CopDuty[playerid] = 0;
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* %s je upravo obukao Pancir na sebe, i pojeo krafnu.", sendername);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						}
					}
				}
			}
		}
Reply


Messages In This Thread
[Help]/oprema - by vannesenn - 11.02.2012, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)