Posts: 32
Threads: 14
Joined: Jul 2013
Reputation:
0
17.10.2014, 10:12
(
Последний раз редактировалось jamjamnewbie; 17.10.2014 в 23:37.
)
Is it possible to "freely move" while invisible to other players?
WHILE YOU CAN SEE THEM
kinda like "/vanish" in minecraft(it is a plugin command)(if you know what i mean)
Posts: 32
Threads: 14
Joined: Jul 2013
Reputation:
0
sorry forgot something, edited to what I actually meant
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
Not that I know of. The best thing would probably to put the player in spectating mode, and set a camera. See the "flymode" filterscript in the default SA-MP package.
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
Player will be still be able to view others when update call for the invisible player returns 0. For others, the player will be at the last returned 1 position as AFK. The best thing you can do is to set the virtual world to another one at first (save the previous one too) and set the variable for invisible. Under OnPlayerUpdate, check if player's world has been changed and if invisible variable is set, if so set back the world and return 0. From then, keep on returning 0 to be invisible. Just a little note that whenever you're returning 0, player's data will not be sent to the server but player can receive data(see others and all). For example, shots and all. I haven't tried OnPlayerGive/TakeDamage callbacks, neither OnPlayerWeaponShot. But you should try and look if they're called when OnPlayerUpdate is returned 0. If it calls, you can do custom damage when update call returns 0.
Posts: 310
Threads: 24
Joined: Jul 2014
As ****** said, Setting Player's Virtual World will work properly.