samp.directory
← Skrypty i biblioteki

Fairuz-Afdhal/IsPlayerUsingAndroid

A filterscript that checks if a player is using android

Filterscript★ 15zaktualizowano lip 2024Apache-2.0Pawn
Otwórz na GitHubie

README.md

WARNING

Some android clients has bypassed this function, please use open.mp IsPlayerUsingOfficialClient() function, you can use both at the same time.

Installation

  1. Load the filterscript
  2. Put the define in your gamemode to make it easier
#define IsPlayerAndroid(%0)                 GetPVarInt(%0, "NotAndroid") == 0

Usage

The script may only be loaded as filterscript because SendClientCheck is only called when you do so, read.

public OnPlayerSpawn(playerid)
{
    if(IsPlayerAndroid(playerid))
        SendClientMessage(playerid, "You're connected from android");
 return 1;
}

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

Fairuz-Afdhal/IsPlayerUsingAndroid: Filterscript SA-MP | samp.directory