SA-MP Forums Archive
Connect Message Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Connect Message Help (/showthread.php?tid=657281)



Connect Message Help - RJTabish - 04.08.2018

Hello Actually I Was Trying To Create Different OnplayerConnect Message like for example my name is alan so when i am joining the game then its says to all players ( Alan Is Connected from USA )
So What Should I do Or If You Can Send Me Codes Then its good and easier for me


Re: Connect Message Help - Lokii - 04.08.2018

PHP код:
#include <a_samp>
#include <geoip>
public OnPlayerConnect(playerid)
{
    new 
str[60], name[MAX_PLAYER_NAME], country[15];
    if(
IsPlayerNPC(playerid)) return 1;
    
GetPlayerName(playeridnamesizeof(name));
    
GetPlayerCountry(playeridcountrysizeof(country));
    
format(strsizeof(str), "%s Is Connected from %s"namecountry);
    
SendClientMessage(playerid0xFFFF00FFstr);
    return 
1;




Re: Connect Message Help - RJTabish - 04.08.2018

link inc geoip ? what should i do bro


Re: Connect Message Help - Lokii - 04.08.2018

Quote:
Originally Posted by RJTabish
Посмотреть сообщение
link inc geoip ? what should i do bro
https://sampforum.blast.hk/showthread.php?tid=296171


Re: Connect Message Help - RJTabish - 05.08.2018

thanx brother