i need help please help me
#1

Код:
CMD:open(playerid, params[])
{
    // Dynamic Gates
    for(new idx=1; idx<MAX_FURNITURE; idx++)
	{
	    if(FurnitureInfo[idx][fModel] && IsPlayerInRangeOfPoint(playerid, 30, FurnitureInfo[idx][fX], FurnitureInfo[idx][fY], FurnitureInfo[idx][fZ]))
	      {
	            if(!FurnitureInfo[idx][fStatus])
		        {
		            FurnitureInfo[idx][fStatus] = 1;
                    MoveDynamicObject(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fX], FurnitureInfo[idx][fY], FurnitureInfo[idx][fZ],FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], 90, 10);
		            SetDynamicObjectRot(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], 90);
		        }
		        else
		        {
		            FurnitureInfo[idx][fStatus] = 0;
                    MoveDynamicObject(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fX], FurnitureInfo[idx][fY], FurnitureInfo[idx][fZ],FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], FurnitureInfo[idx][fRZ], 10);
		            SetDynamicObjectRot(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], FurnitureInfo[idx][fRZ]);
		        }
	        }
	        else
	        {
		        if(!FurnitureInfo[idx][fStatus])
		        {
		            FurnitureInfo[idx][fStatus] = 1;
                    MoveDynamicObject(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fX], FurnitureInfo[idx][fY], FurnitureInfo[idx][fZ],FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], 90, 10);
		            SetDynamicObjectRot(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], 90);
		        }
		        else
		        {
		            FurnitureInfo[idx][fStatus] = 0;
                    MoveDynamicObject(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fX], FurnitureInfo[idx][fY], FurnitureInfo[idx][fZ],FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], FurnitureInfo[idx][fRZ], 10);
		            SetDynamicObjectRot(FurnitureInfo[idx][fModel], FurnitureInfo[idx][fRX], FurnitureInfo[idx][fRY], FurnitureInfo[idx][fRZ]);
		        }
	        }
	        idx = MAX_FURNITURE;
	        return 1;
	}
	return 1;
}
its not moving on rotation z
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)