players invisible
#1

Hey,
how i can do that all players are invisible, not only on the radar. (for a command)
like in the request class, because i like that players can select different things and the
camera show the player. but if a other player do this command too, the player see the other player.
Reply
#2

Set players virtual world ?
Reply
#3

its a command like /select or something (i must think about that xD)
and then all players who typed the command are in the same virtual world.
Reply
#4

pawn Код:
if (strcmp(cmdtext, "/select", true) == 0)
{
  //any other stuff you want to add you can add here :P
  SetPlayerVirtualWorld(playerid, 3);
  return 1;
}
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Reply
#5

thx, but all players who typed this command are in the same virtual world.
because i like to do if a player type /select then the player are on a position, anywhere
and the camera show the player. but the problem on this are, if a other or more players type
/select, everybody see the other player who are in /select.
thats why i like to get a solution.
Reply
#6

Quote:
Originally Posted by Headshot1108
thx, but all players who typed this command are in the same virtual world.
pawn Код:
if(strcmp(cmdtext, "/select", true) == 0)
{
  // other code.
  SetPlayerVirtualWorld(playerid, (1 + playerid));
  // other code.
  return true;
}
They won't be in the same virtual world now.
Reply
#7

haha xD clever thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)