07.04.2011, 07:21
Код:
new Text:txt; new Text:gTextDraw; #define INVALID_TEXT_DRAW (0xFFFF) txt = TextDrawCreate(10.0, 100.0, "Sample text draw under the chat box"); TextDrawUseBox(txt, 1); TextDrawShowForPlayer(playerid, txt); public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, gTextDraw); new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s has joined the server", pname); SendClientMessageToAll(0xAAAAAAAA, string); return 1; } OnGameModeinit () gTextDraw = TextDrawCreate(10.0, 100.0, "Welcome to my server!"); TextDrawUseBox(gTextDraw, 1); return 1; } public OnPlayerRequestSpawn(playerid) { TextDrawHideForPlayer(playerid, gTextDraw); return 1; }