SA-MP Forums Archive
Welcome to [Player] - Welcome 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Welcome to [Player] - Welcome message help (/showthread.php?tid=73479)



Welcome to [Player] - Welcome message help - nickbugun - 15.04.2009

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


Re: Welcome to [Player] - Welcome message help - Clum` - 15.04.2009

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;
}



Re: Welcome to [Player] - Welcome message help - nickbugun - 15.04.2009

ohh tnx, I was making string 50