public OnPlayerConnect(playerid) { new message[120]; new msg[120]; format(message, 120, "*** %s has joined the server.", PName(playerid)); format(msg, 120, "[Welcome to SampX, %s]", PName(playerid)); SendClientMessageToAll(0xAFAFAFAA, message); SendClientMessage(playerid, COLOR_YELLOW, msg); SendClientMessage(playerid, COLOR_YELLOW, "[Read the /rules and /commands.]"); return 1; }