SA-MP Forums Archive
Problem with moving - 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: Problem with moving (/showthread.php?tid=284939)



Problem with moving - RaulSTARs - 21.09.2011

Hello , today i opened a server with my friend and when she moves , I didn't see them in moving, and the same at me , I move and he didn't saw me. He just stay in same position , but she moves. What can I do with this Problem?


Re: Problem with moving - Kingunit - 21.09.2011

You are both in the same VW?


Re: Problem with moving - RaulSTARs - 21.09.2011

If i Change my World in 1 , and again in 0 , i saw him at an another spot where she is but it's again freeze , but still moving for him

Kingunit - Yes


****** , that ?
Quote:

public OnPlayerUpdate(playerid)
{
new drunk2 = GetPlayerDrunkLevel(playerid);
if(drunk2 < 100)
{
SetPlayerDrunkLevel(playerid,2000);
}
else
{
if(DLlast[playerid] != drunk2)
{
new fps = DLlast[playerid] - drunk2;

if((fps > 0) && (fps < 200))
DLlast[playerid] = drunk2;
}
}
}




Re: Problem with moving - Kingunit - 21.09.2011

Hmm strange. You see each other? And if you just move you see the other person 'frozen'. Try to run LVDM or something. To check if it's a server problem or a script problem.


Re: Problem with moving - RaulSTARs - 21.09.2011

I have another RP server , and on that works , but on drift no


Re: Problem with moving - Kingunit - 21.09.2011

Using a specific gamemode from SA:MP forums? Maybe it's a known problem. Also drop down your OnPlayerConnect or OnPlayerSpawn. Just to get some code.


Re: Problem with moving - RaulSTARs - 21.09.2011

****** , Can you exaplain what can i do to resolve please?

KingUNit

OnPlayerSpawn :

Quote:

public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, 0xFFFF00AA,"Welcome, use /cmds to get started!");
PlayerPlaySound(playerid, 1063, 0.0, 0.0, 10.0);
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 10.0);
GameTextForPlayer(playerid,"~g~Use ~r~/car ~g~to spawn a car!",2000,5);
SetPlayerPos(playerid,2022.3024,1342.3583,11);
SetPlayerFacingAngle(playerid,266.3201);
return 1;
}
OnPlayerConnect

Quote:

public OnPlayerConnect(playerid)
{
TextDrawsShown[playerid] = false;
VHSCreated[playerid] = false;
LightRedHealthCreated[playerid] = false;
LightYellowSpeedCreated[playerid] = false;

new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s Has Joined", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
TextDrawShowForAll(Website);
SendClientMessage(playerid, 0xFFFF00AA,"Connected");
SendClientMessage(playerid, 0xFFFF00AA,"Drifter's Home v0.1");
SendClientMessage(playerid, 0xFFFF00AA,"~Enjoy Your Stay!");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Server Rules", "Hacks are allowed, but not for guns!\nRespect Players And Staff\nIgnorance Towards The Staff Will Result In A Ban\nDo Not Ask Staff To Do Things For You!\nConsider Yourself Warned!", "I Agree", "I Disagree");
return 1;

}




Re: Problem with moving - RaulSTARs - 21.09.2011

sorry for 2post , UP


Re: Problem with moving - IceCube! - 21.09.2011

pawn Код:
public OnPlayerUpdate(playerid)
{
   new drunk2 = GetPlayerDrunkLevel(playerid);
   if(drunk2 < 100)
   {
      SetPlayerDrunkLevel(playerid,2000);
   }
   else
   {
    if(DLlast[playerid] != drunk2)
    {
       new fps = DLlast[playerid] - drunk2;

       if((fps > 0) && (fps < 200))
       DLlast[playerid] = drunk2;
    }
  }
return 1;
}



Re: Problem with moving - RaulSTARs - 21.09.2011

Thanks All It works :*

Thank you for support !