Edit Object BUG[DON'T UPDATE POS]
#5

Код:
Dialog:LSPDClothes(playerid, response, listitem, inputtext[])
{
	if(response)
	{
		switch(listitem)
		{
			case 0:
			{
				if(HasAttachedObject(playerid, 18636)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 18636, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 18636;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 1:
			{
				if(HasAttachedObject(playerid, 19099)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 19099, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 19099;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 2:
			{
				if(HasAttachedObject(playerid, 19100)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 19100, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 19100;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 3:
			{
				if(HasAttachedObject(playerid, 19161)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 19161, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 19161;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 4:
			{
				if(HasAttachedObject(playerid, 19162)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 19162, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 19162;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 5:
			{
				if(HasAttachedObject(playerid, 19521)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 19521, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 19521;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 6:
			{
				if(HasAttachedObject(playerid, 19200)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 19200, 2, 0.152, 0.0, -0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0,  0xFFFFFFFF);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 19200;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 7:
			{
				if(HasAttachedObject(playerid, 18637)) return SCM(playerid, COLOR_GREY, "Deja ai aceasta palarie.");
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
					{
						SetPlayerAttachedObject(playerid, i, 18637, 6, 0.071999, 0.02, 0.0, 0.0, 0.0, 0.0, 0.881, 1.0, 0.719999);
						EditAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = 18637;
						SetIntVar(playerid, "EditingPolice", 1);
						return 1;
					}
				}
			}
			case 8:
			{
				for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
				{
					if(IsPlayerAttachedObjectSlotUsed(playerid, i) && PlayerToys[playerid][i][ptToyOn] == 0)
					{
						RemovePlayerAttachedObject(playerid, i);
						PoliceObjects[playerid][i] = INVALID_OBJECT_ID;
					}
				}
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
Edit Object BUG[DON'T UPDATE POS] - by DonBonanno - 15.04.2015, 18:18
Re: Edit Object BUG[DON'T UPDATE POS] - by DonBonanno - 15.04.2015, 21:55
Re: Edit Object BUG[DON'T UPDATE POS] - by DonBonanno - 17.04.2015, 17:56
Re: Edit Object BUG[DON'T UPDATE POS] - by Azula - 17.04.2015, 18:04
Re: Edit Object BUG[DON'T UPDATE POS] - by DonBonanno - 17.04.2015, 18:15
Re: Edit Object BUG[DON'T UPDATE POS] - by Azula - 17.04.2015, 18:18
Re: Edit Object BUG[DON'T UPDATE POS] - by DonBonanno - 17.04.2015, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)