players invisible - 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: players invisible (
/showthread.php?tid=135738)
players invisible -
Headshot1108 - 21.03.2010
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.
Re: players invisible -
MaykoX - 21.03.2010
Set players virtual world ?
Re: players invisible -
Headshot1108 - 21.03.2010
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.
Re: players invisible -
MaykoX - 21.03.2010
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
Re: players invisible -
Headshot1108 - 21.03.2010
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.
Re: players invisible -
Correlli - 21.03.2010
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.
Re: players invisible -
Headshot1108 - 21.03.2010
haha xD clever thx.