17.10.2009, 15:15
Код:
new Text:URL[MAX_PLAYERS]; new Text:URL2[MAX_PLAYERS]; forward TextDrawCreator(playerid); forward TextDrawDestroyer(playerid); forward TextDrawShower(playerid); forward TextDrawHider(playerid); public TextDrawCreator(playerid) { if(IsPlayerConnected(playerid)) { //--- URL URL[playerid] = TextDrawCreate(465.000000,11.000000,"http://menace society.fr.nf/"); URL2[playerid] = TextDrawCreate(544.000000,4.000000,"2"); TextDrawAlignment(URL[playerid],0); TextDrawAlignment(URL2[playerid],0); TextDrawBackgroundColor(URL[playerid],0x000000ff); TextDrawBackgroundColor(URL2[playerid],0x000000ff); TextDrawFont(URL[playerid],3); TextDrawLetterSize(URL[playerid],0.3,0.8); TextDrawFont(URL2[playerid],3); TextDrawLetterSize(URL2[playerid],1.000000,2.100000); TextDrawColor(URL[playerid],0xffffffff); TextDrawColor(URL2[playerid],0xff0000cc); TextDrawSetOutline(URL[playerid],1); TextDrawSetOutline(URL2[playerid],1); TextDrawSetProportional(URL[playerid],1); TextDrawSetProportional(URL2[playerid],1); TextDrawSetShadow(URL[playerid],1); TextDrawSetShadow(URL2[playerid],1); SetTimerEx("TextDrawShower",3000,0,"i",playerid); } return 1; } public TextDrawDestroyer(playerid) { TextDrawDestroy(Text:URL[playerid]); TextDrawDestroy(Text:URL2[playerid]); return 1; } public TextDrawShower(playerid) { if(IsPlayerConnected(playerid)) { TextDrawShowForPlayer(playerid,Text:URL[playerid]); TextDrawShowForPlayer(playerid,Text:URL2[playerid]); } return 1; } public TextDrawHider(playerid) { if(IsPlayerConnected(playerid)) { TextDrawHideForPlayer(playerid,Text:URL[playerid]); TextDrawHideForPlayer(playerid,Text:URL2[playerid]); } return 1; } public OnGameModeExit() { for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { TextDrawHider(i); TextDrawDestroyer(i); } } return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawHider(playerid); return 1; }

ShadowMcFartPants
^^ Thats not my code!