Skip to content

An include for detecting if player using android client.

License

Notifications You must be signed in to change notification settings

Dmitriy51/android-check

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An include for detecting if player using android client.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Pawn 100.0%