/android-check

An include for detecting if player using android client.

Primary LanguagePawnApache License 2.0Apache-2.0

android-check

sampctl

A forked project from original source code my master Fairuz 🙏

Installation

Simply install to your project:

sampctl package install ff-agus44/android-check

Include in your code and begin using the library:

#include <android-check>

And before running, make sure you have this line:

local: true

in your pawn.json or pawn.yaml if you are sampctl users, otherwise just ignore this.

Usage

#include <a_samp>
#include <android-check>

public OnClientChecked(playerid, Client:type)
{
	if (type == CLIENT_TYPE_ANDROID)
	{
		return Ban(playerid);
	}
	return 1;
}

NOTE: you cannot use this inside OnPlayerConnect, that is why i made a custom one :>

Testing

To test, simply run the package:

sampctl package run