15.06.2010, 02:23
Isso й muito facil cara Cria um settimer para chamar o o public que desligarб o textdraw
###edit
###edit
pawn Код:
#include <a_samp>
new Text:hmmmboiiola;
public OnPlayerConnect()
{
hmmmboiiola = TextDrawCreate(0, 0," oi ");
TextDrawUseBox(hmmmboiiola,1);
TextDrawBoxColor(hmmmboiiola,0xFFFFFFAA);//branco
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/hmmmboiiola", cmdtext, true, 10) == 0)
{
TextDrawShowForPlayer(playerid,Text:hmmmboiiola);
SetTimer("hmmmboiiolaa",5000,false);
return 1;
}
return 0;
}
forward hmmmboiiolaa(playerid);
public hmmmboiiolaa(playerid)
{
TextDrawHideForPlayer(playerid,hmmmboiiola);
return 1;
}