hi can we welcome different players in server
#1

Delete
Reply
#2

Delete
Reply
#3

Quote:

public OnPlayerConnect(playerid)
{
new str[256];
format(str, sizeof(str), "Welcome %s to the server!", PlayerName(playerid));
SendClientMessage(playerid,RED,str);
return 1;
}

stock PlayerName(playerid)
{
new name[24];
GetPlayerName(playerid,name,sizeof(name));
return name;
}

I guess that's it.
Reply
#4

and you can put some specific players (manually)

Quote:

public OnPlayerConnect(playerid)
{
if(strcmp(PlayerName(playerid),"[AX]Yo",true))
{
SendClientMessageToAll(RED," Welcome [AX]Yo to the server);
return 1;
}
return 1;
}

Reply
#5

Delete
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)