![]() |
|
[Pawn] check sa-mp mobile players - Printable Version +- open.mp forum (https://forum.open.mp) +-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) +--- Thread: [Pawn] check sa-mp mobile players (/showthread.php?tid=2189) |
check sa-mp mobile players - Radical - 2021-07-25 How to check is player connected with sa-mp mobile? -------------------------------------------------------- 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;
}
RE: check sa-mp mobile players - Pinch - 2021-07-25 https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Players/y_android/quick-start.md RE: check sa-mp mobile players - Radical - 2021-07-27 (2021-07-25, 10:41 PM)Pinch Wrote: https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Players/y_android/quick-start.md does not work right. It also bans PC players and NPCs. RE: check sa-mp mobile players - Radical - 2021-07-28 It's working. my bad.. Thanks Y-Less, Pinch |