SA-MP Forums Archive
Fast questiong, when player floats :S? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fast questiong, when player floats :S? (/showthread.php?tid=85838)



Fast questiong, when player floats :S? - XeoN_13 - 09.07.2009

Hello everyone , im here because i need a quick help ... what im trieng to do is a command like /bug or /sync , for players to sync when there buged or when they float , iv heard of something with ClearAnimation? would that work?


Re: Fast question, when player floats :S? - XeoN_13 - 09.07.2009

sorry i miss spelled Question*


Re: Fast question, when player floats :S? - Correlli - 09.07.2009

Quote:
Originally Posted by XeoN_13
sorry i miss spelled Question*
You have a edit button for that.

About /sync command:
Try to get player's position, then set him to that position and get his skin and give him the same skin back.


Re: Fast question, when player floats :S? - XeoN_13 - 09.07.2009

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by XeoN_13
sorry i miss spelled Question*
You have a edit button for that.

About /sync command:
Try to get player's position, then set him to that position and get his skin and give him the same skin back.
hmm could you help me with the code? im not that smart with pawno


Re: Fast question, when player floats :S? - Correlli - 09.07.2009

pawn Код:
new Float:x_pos, Float:y_pos, Float:z_pos;
GetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerSkin(playerid, GetPlayerSkin(playerid));
Just use this in /sync command.


Re: Fast questiong, when player floats :S? - Abernethy - 09.07.2009

or
pawn Код:
TogglePlayerControllable(playerid, 1);
ClearAnimations(playerid);



Re: Fast question, when player floats :S? - XeoN_13 - 09.07.2009

Quote:
Originally Posted by Don Correlli
pawn Код:
new Float:x_pos, Float:y_pos, Float:z_pos;
GetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerSkin(playerid, GetPlayerSkin(playerid));
Just use this in /sync command.
thanks alot, ill try btw im also tryng this do you think it might work?

Код:
	if(strcmp(cmd,"/sync",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
 	 	ClearAnimations(playerid);
	  }
	  return 1;
	}



Re: Fast question, when player floats :S? - Correlli - 09.07.2009

Quote:
Originally Posted by XeoN_13
thanks alot, ill try btw im also tryng this do you think it might work?
I don't know, just use one of the codes and go with someone on the server and create a "float"-bug and you'll see if it works or not.


Re: Fast question, when player floats :S? - pen_theGun - 10.07.2009

Quote:
Originally Posted by Don Correlli
pawn Код:
new Float:x_pos, Float:y_pos, Float:z_pos;
GetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerSkin(playerid, GetPlayerSkin(playerid));
Код:
if(strcmp(cmd,"/sync",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
 	 	ClearAnimations(playerid);
	  }
	  return 1;
	}
^^This will definitly not work!

Respawn player.


Re: Fast question, when player floats :S? - XeoN_13 - 10.07.2009

Quote:
Originally Posted by pen_†ĥęGun
Quote:
Originally Posted by Don Correlli
pawn Код:
new Float:x_pos, Float:y_pos, Float:z_pos;
GetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerSkin(playerid, GetPlayerSkin(playerid));
Код:
if(strcmp(cmd,"/sync",true)==0)
	{
	  if(IsPlayerConnected(playerid))
	  {
 	 	ClearAnimations(playerid);
	  }
	  return 1;
	}
^^This will definitly not work!

Respawn player.
I tried ALL three but none work , any one else knows how to fix?