13.12.2011, 16:10
What Sinc has posted is for every single player who connect's the server.
You might be having a Level for the Server Developer in the Player define's area. Lets say "pAdmin = 7"
You need to paste this in your OnPlayerConnect Function of your game mode! [Rep+ if i help'ed you]
You might be having a Level for the Server Developer in the Player define's area. Lets say "pAdmin = 7"
Код:
public OnPlayerConnect(playerid) { if(PlayerInfo[playerid][pAdmin] == 7) { new name[MAX_PLAYER_NAME], string[156]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "Server Developer %s has connected to the server!", name); SendClientMessageToAll(COLOR_RED, string); // Choose your color return 1; } }