A forked project from original source code my master Fairuz 🙏
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.
#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 :>
To test, simply run the package:
sampctl package run