• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] check sa-mp mobile players
#1
How to check is player connected with sa-mp mobile?

--------------------------------------------------------

2023 UPDATE:
PHP Code:
#if !defined gpci
    native gpci(playeridserial[], 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(playeridszSerialsizeof(szSerial));

if(
strcmp("ED40ED0E8089CC44C08EE9580F4C8C44EE8EE990"szSerialtrue)) 
{
return 
1;
}

return 
0;

  Reply
#2
https://github.com/pawn-lang/YSI-Include...k-start.md
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#3
(2021-07-25, 10:41 PM)Pinch Wrote: https://github.com/pawn-lang/YSI-Include...k-start.md

does not work right. It also bans PC players and NPCs.
  Reply
#4
It's working. my bad..

Thanks Y-Less, Pinch
  Reply


Forum Jump: