Public feed
#533501
#include <a_samp>new Text:wText; // Welcome textforward RemoveTextForPlayer(playerid, Text:text); // Forward our public function.public OnGameModeInit(){ /* Code */ wText = TextDrawCreate(32.0, 256.0, "SAA 0.1.1 San Andreas Arena"); TextDrawUseBox(wText, 1); // Put a box under this text TextDrawBackgroundColor(wText, 0xEE8822AA); // Change drop shadow colour (RRGGBBAA) TextDrawColor(wText, 0xDD0000AA); // Change text colour (RRGGBBAA) TextDrawBoxColor(wText, 0xFFEE22AA); // Change box colour (RRGGBBAA) TextDrawSetShadow(wText, 2); // Set shadow size to '2' TextDrawFont(wText, 2); // Change the font to font number 2 (Bank Gothic) return 1;}public OnPlayerConnect(playerid){ /* Code */ TextDrawShowForPlayer(playerid, wText); // Show this text for player SetTimerEx("RemoveTextForPlayer", 15000, 0, "ii", playerid, wText); // SetTimer to remove the text return 1;}public RemoveTextForPlayer(playerid, Text:text){ TextDrawHideForPlayer(playerid, text); // Hide the text id for player}