Fast questiong, when player floats :S?
#1

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?
Reply
#2

sorry i miss spelled Question*
Reply
#3

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.
Reply
#4

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
Reply
#5

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.
Reply
#6

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

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;
	}
Reply
#8

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.
Reply
#9

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.
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)