Welcome to [Player] - Welcome message help
#1

I want to make that when a player chooses a class it sends a message to all saying
Welcome to [Playername]
Help pls?
Reply
#2

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string, sizeof(string), "Welcome to %s.", pName);
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
}
Reply
#3

ohh tnx, I was making string 50
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)