Skip to content

IsPlayerUsingSampMobile

Adib edited this page Nov 4, 2023 · 2 revisions

Description

Is the player use sa-mp mobile?

Syntax

bool: IsPlayerUsingSampMobile(playerid)
Params Definition
playerid The id of the player

Return

true if player using sa-mp mobile, otherwise false

Usage

public OnPlayerSpawn(playerid) 
{
    if(IsPlayerUsingSampMobile(playerid)) 
    {
        SendClientMessage(playerid, -1, "You are using SA-MP Mobile client!");
    }
}

Clone this wiki locally