Advertisement
Guest User

IsPlayerAndroid

a guest
Oct 31st, 2020
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. native SendClientCheck(playerid, type, arg, offset, size);
  4. forward OnClientCheckResponse(playerid, type, arg, response);
  5.  
  6.  
  7. #define IsPlayerAndroid(%0) GetPVarInt(%0, "NotAndroid") == 0
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("Android check has been successfully loaded.");
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16. print("\n--------------------------------------");
  17. print(" Android check filterscript unloaded");
  18. print("--------------------------------------\n");
  19. }
  20.  
  21. public OnPlayerConnect(playerid)
  22. {
  23.  
  24. SendClientCheck(playerid, 0x48, 0, 0, 2);
  25. return 1;
  26. }
  27.  
  28. public OnClientCheckResponse(playerid, type, arg, response)
  29. {
  30. switch(type)
  31. {
  32. case 0x48:
  33. {
  34. SetPVarInt(playerid, "NotAndroid", 1);
  35. }
  36. }
  37. return 1;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement