SA-MP Forums Archive
Drag system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Drag system (/showthread.php?tid=612916)



Drag system - SetPlayerNameTag - 22.07.2016

I'm re-making the drag system and using a timer to update the angle who's been dragging.

I don't know if its work can anyone test for me?because I can't use PC for a while.

I think if it work it would looks like: the person who's dragging other he can walk and the person whos been dragging and he will be walk like a normal player instead of update his pos.

Код HTML:
				if(GetPVarInt(i, "Drag") != INVALID_MAXPL)
				{
					new Float: zangle;
		    		SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(GetPVarInt(i, "Drag")));
		    		SetPlayerInterior(i,GetPlayerInterior(GetPVarInt(i, "Drag")));
		    		GetPlayerFacingAngle(GetPVarInt(i, "Drag"), zangle);
		    		SetPlayerFacingAngle(i, zangle);
		    		ApplyAnimation(i,"PED","WALK_civi",4.1,1,1,1,1,1);

		    		//GetPlayerPos(GetPVarInt(i, "Drag"),x,y,z);
		    		
		    		//SetPlayerPosEx(i,x+1,y,z);
		    		//SetCameraBehindPlayer(i);
		    		if(GetPVarInt(GetPVarInt(i, "Drag"), "Member") == 4) { ApplyAnimation(i, "INT_HOUSE","BED_Loop_R", 4.0,1,1,1,1,1); }
				}