20.05.2009, 22:49
1.open the script you want to edit with pawno located in your serverfolder/pawno/pawno.exe.
2.search for public OnPlayerConnect.
3. Add the stuff below between the brackets to the OnPlayerConnect part of the GameMode.
4.Compile the GameMode by pressing F5.
2.search for public OnPlayerConnect.
3. Add the stuff below between the brackets to the OnPlayerConnect part of the GameMode.
Код:
public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "Welcome to the server \"%s\"", name); SendClientMessage(playerid,0xFFFF00AA, string); return true; }