need help..
#7

Quote:
Originally Posted by Andy_Fierro
just do it in PD, its alot easier
Код:
			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
			{
				if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
				{
					if(OnDuty[playerid]==0)
			    {
			      if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			      {
				  		format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername);
						}
						else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			      {
				  		format(string, sizeof(string), "* Agent %s took a Badge and a Gun from his locker.", sendername);
						}
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						SafeGivePlayerWeapon(playerid, 24, 70);
						SafeGivePlayerWeapon(playerid, 3, 0);
						SetPlayerArmour(playerid, 100);
						OnDuty[playerid] = 1;
					}
					else if(OnDuty[playerid]==1)
					{
					  if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					  {
							format(string, sizeof(string), "* Officer %s places his Badge and Gun in his locker.", sendername);
						}
						else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
						{
						  format(string, sizeof(string), "* Agent %s places his Badge and Gun in his locker.", sendername);
						}
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						SafeResetPlayerWeapons(playerid);
						SetPlayerArmour(playerid, 0);
						SafeGivePlayerWeapon(playerid, 41, 500);
						OnDuty[playerid] = 0;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD2, " You are not in a locker room !");
					return 1;
				}
			}
even with that it crash!
Reply


Messages In This Thread
need help.. - by yuichi - 11.07.2009, 15:23
Re: need help.. - by yuichi - 11.07.2009, 15:55
Re: need help.. - by yamoto - 11.07.2009, 16:31
Re: need help.. - by killar456 - 11.07.2009, 17:01
Re: need help.. - by yamoto - 11.07.2009, 17:32
Re: need help.. - by yuichi - 11.07.2009, 19:19
Re: need help.. - by yuichi - 12.07.2009, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)