samp.directory
← Scripts and libraries

Brunoo16/samp-tpi

TogglePlayerInvisibility - Make players invisible.

Library★ 9updated Feb 2023GPL-3.0Pawnsampctl
Open on GitHub

Install with sampctl

sampctl package install Brunoo16/samp-tpi

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 1 package

README.md

samp-tpi

TogglePlayerInvisibility - Make players invisible.

I deleted this repository previously, I'm just bringing it back. I won't be updating/maintaining this.

Installation

Simply install to your project:

sampctl package install BrunoBM16/samp-tpi

Functions

TogglePlayerInvisibility(const playerid, bool:toggle);
bool:IsPlayerInvisible(const playerid);

If you are willing to use this include:

  • Invisible players won't send updates inside vehicles. This means, you won't see the vehicle being driven or so.
  • Even though OnPlayerGiveDamage and OnPlayerWeaponShot are called by invisible players, they can't do any damage, unless you are using weapon-config.

Despite the above points, everything works as intended. Also, as said previously, this won't be updated anymore, so it is unlikely I will do anything about the points mentioned.

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

Brunoo16/samp-tpi: SA-MP Library | samp.directory