11.01.2015, 12:13
pawn Код:
public OnPlayerConnect(playerid)
{ new pmess[128], IP[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerIp(playerid,IP,sizeof(IP));
printf("%s has joined the server. Country: %s | IP Address: %s",name, GetPlayerCountryName(playerid),IP);
format(pmess,sizeof(string), ""COL_RED"%s"COL_WHITE" has joined the server from "COL_RED"%s.", name, GetPlayerCountryName(playerid));
SendClientMessageToAll(-1, pmess);
GameTextForPlayer(playerid, "~g~Welcome ~r~to ~p~Samp~y~Drifting ~b~Community", 5000, 6);
return 1;
}