← Скрипты и библиотеки
Fairuz-Afdhal/IsPlayerUsingAndroid
A filterscript that checks if a player is using android
Фильтрскрипт★ 15обновлён июль 2024 г.Apache-2.0Pawn
Открыть на GitHubREADME.md
WARNING
Some android clients has bypassed this function, please use open.mp IsPlayerUsingOfficialClient() function, you can use both at the same time.
Installation
- Load the filterscript
- 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;
}
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью