How to check is player connected with sa-mp mobile?
--------------------------------------------------------
2023 UPDATE:
--------------------------------------------------------
2023 UPDATE:
PHP Code:
#if !defined gpci
native gpci(playerid, serial[], len);
#endif
IsPlayerUsingSAMPLauncher(playerid)
{
//Checks if player connected with android mobile using the app SAMP Launcher
//https://play.google.com/store/apps/details?id=ru.unisamp_mobile.launcher&hl=en&gl=US&pli=1
new
szSerial[41]
;
gpci(playerid, szSerial, sizeof(szSerial));
if(strcmp("ED40ED0E8089CC44C08EE9580F4C8C44EE8EE990", szSerial, true))
{
return 1;
}
return 0;
}