Welcome message with name
#1

Hello Guys

I am new and want to know how to make a welcome message with name.

For Example :

Quote:

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"Welcome to UltimateFS (PlayerXY)!");
return 1;
}

How to script that :/ ?
Reply
#2

Here You Go :
pawn Код:
new string[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Welcome to UltimateFS %s!",pname);
SendClientMessage(playerid,COLOR_GREEN,string);
Reply
#3

Edit: Someone was faster
Reply
#4

Quote:
Originally Posted by M0HAMMAD
Посмотреть сообщение
Here You Go :
pawn Код:
new string[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Welcome to UltimateFS %s!",pname);
SendClientMessage(playerid,COLOR_GREEN,string);
Thank you so much :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)