23.08.2015, 22:08
Sorry for double post, but I will explain it.
When I connect to my server, it says "(Name) has joined the server.", I want to have my name at the very least
PHP код:
public OnPlayerConnect(playerid)
{
new string[350], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string,sizeof string, "%s has joined the server.", pName);
SetTimerEx("DelayedConnect", 2000, false, "i", playerid);
SendClientMessageToAll(COLOR_GREY, string);
return 1;
}
forward DelayedConnect(playerid);
public DelayedConnect(playerid);