Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <geolocation>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Geolocation kullanımı");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- new str[144];
- GetPlayerCountry(playerid, str, sizeof(str));
- format(str, sizeof(str), "{FFFFFF}%s {757575}(ID: %d) Sunucuya bağlandı.[{FFFFFF}%s{757575}]",GetName(playerid),playerid, str);
- SendClientMessageToAll(-1, str);
- return 1;
- }
- stock GetName(playerid)
- {
- new name[24];
- GetPlayerName(playerid,name,24);
- return name;
- }
- /*
- https://github.com/Whitetigerswt/SAMP-geoip/blob/master/geolocation.inc
- Yukarıdaki linkten geolocation.inc yi indirebilirsiniz.
- */
Advertisement
Add Comment
Please, Sign In to add comment