Help me please, in connecting to server
#1

Hello All Again ! :P
Would you please tell me how to do that - when the player connects to the server, instead of selecting skin shown on the server coordinates the submission of the server model
SetPlayerCameraPos (playerid, X, Y, Z);
SetPlayerCameraLookAt (playerid, X, Y, Z);
After a few seconds, another
SetPlayerCameraPos (playerid, X, Y, Z);
SetPlayerCameraLookAt (playerid, X, Y, Z);
Then press Shift and started to play directly without choosing Skin...

If you do not understand what I wrote - I will try to tell me to translate it so that you understand
Reply
#2

pleeeaaassseee help me... must be urgently ..please!
Reply
#3

Use a timer

A basic example:
pawn Код:
forward SetCameraPosition(playerid);

new
  camview[MAX_PLAYERS],
  camtimer[MAX_PLAYERS],

  Float:campos[][] =
  {
    { 10.0, 10.0, 10.0, 0.0, 0.0, 0.0 }, //cam 1 pos_x, pos_y, pos_z, lookat_x, lookat_y, lookat_z
    { -10.0, 10.0, 10.0, 0.0, 0.0, 0.0 }, //cam 2 pos_x, pos_y, pos_z, lookat_x, lookat_y, lookat_z
    { 10.0, -10.0, 10.0, 0.0, 0.0, 0.0 }, //cam 3 pos_x, pos_y, pos_z, lookat_x, lookat_y, lookat_z
    { -10.0, -10.0, 10.0, 0.0, 0.0, 0.0 } //etc
  }
;

public OnPlayerConnect(playerid)
{
  camtimer[playerid] = SetTimerEx("SetCameraPosition", 5000, true, "d", playerid);
  return true;
}

public OnPlayerDisconnect(playerid, reason)
{
  camview[playerid] = 0;
  KillTimer(camtimer[playerid]);
  return true;
}

public OnPlayerRequestSpawn(playerid)
{
  camview[playerid] = 0;
  KillTimer(camtimer[playerid]);
  return true;
}

public SetCameraPosition(playerid)
{
  new cam = camview[playerid];

  SetPlayerPos(playerid, campos[cam][0], campos[cam][1], campos[cam][2] + 3); //set player pos near camera, for view distance
  SetPlayerCameraPos(playerid, campos[cam][0], campos[cam][1], campos[cam][2]);
  SetPlayerCameraLookAt (playerid, campos[cam][3], campos[cam][4], campos[cam][5]);

  camview[playerid] = (camview[playerid]+1) % sizeof campos;
}



Reply
#4

thank's !!!!!!!!!
And how to do that at a time when there is a change of cells could not click on the skin of choice?
and that after the show 3 pictures player started to play without selecting a skin ?
Reply
#5

why all are silent? Really nobody knows? help me please
Reply
#6

Use SpawnPlayer or something... you have to do tests! Use your brain
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)