Public feed
#533497
#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[playerid], 1); // Put a box under this text TextDrawBackgroundColor(wText[playerid], 0xEE8822AA); // Change drop shadow colour (RRGGBBAA) TextDrawColor(wText[playerid], 0xDD0000AA); // Change text colour (RRGGBBAA) TextDrawBoxColor(wText[playerid], 0xFFEE22AA); // Change box colour (RRGGBBAA) TextDrawSetShadow(wText[playerid], 2); // Set shadow size to '2' TextDrawFont(wText[playerid], 2); // Change the font to font number 2 (Bank Gothic) return 1;}public OnPlayerConnect(playerid){ /* Code */ TextDrawShowForPlayer(playerid, wText[playerid]); // Show this text for player SetTimerEx("RemoveTextForPlayer", 15000, 0, "ii", playerid, wText[playerid]); // SetTimer to remove the text return 1;}public RemoveTextForPlayer(playerid, Text:text){ TextDrawHideForPlayer(playerid, text); // Hide the text id for player}