TahirUcar

SA-MP Geolocation Kullanımı

Feb 5th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.84 KB | None | 0 0
  1. #include <a_samp>
  2. #include <geolocation>
  3.  
  4. #if defined FILTERSCRIPT
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     print("\n--------------------------------------");
  9.     print(" Geolocation kullanımı");
  10.     print("--------------------------------------\n");
  11.     return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16.     return 1;
  17. }
  18.  
  19. #else
  20. #endif
  21.  
  22. public OnPlayerConnect(playerid)
  23. {
  24.     new str[144];
  25.     GetPlayerCountry(playerid, str, sizeof(str));
  26.     format(str, sizeof(str), "{FFFFFF}%s {757575}(ID: %d) Sunucuya bağlandı.[{FFFFFF}%s{757575}]",GetName(playerid),playerid, str);
  27.     SendClientMessageToAll(-1, str);
  28.     return 1;
  29. }
  30.  
  31. stock GetName(playerid)
  32. {
  33.     new name[24];
  34.     GetPlayerName(playerid,name,24);
  35.     return name;
  36. }
  37.  
  38.  
  39. /*
  40. https://github.com/Whitetigerswt/SAMP-geoip/blob/master/geolocation.inc
  41. Yukarıdaki linkten geolocation.inc yi indirebilirsiniz.
  42. */
Advertisement
Add Comment
Please, Sign In to add comment