26.02.2012, 08:43
Something like this I guess?
Compiles fine.
pawn Код:
public OnPlayerConnect(playerid)
{
//New string variable for join message:
new szJoinMessage[128];
//New string variable for player name:
new szPlayerName[24];
//Get the player's name:
GetPlayerName( playerid, szPlayerName, sizeof szPlayerName );
//Format it into dest string, the join message:
format( szJoinMessage, sizeof szJoinMessage, "{FFFFFF}%s has joined MGRP.", szPlayerName );
//Send formatted string to all players.
SendClientMessageToAll( -1, szJoinMessage );
return 1;
}