13.02.2013, 01:35
(
Последний раз редактировалось DerickClark; 13.02.2013 в 10:43.
)
it work
TextDrawShowForPlayer(playerid, Welcome0);
TextDrawShowForPlayer(playerid, Welcome1);
TextDrawShowForPlayer(playerid, Welcome2);
TextDrawShowForPlayer(playerid, Welcome3);
forward HideText(playerid);
public HideText(playerid)
{
TextDrawHideForPlayer(playerid, Text:Welcome0);
TextDrawHideForPlayer(playerid, Text:Welcome1);
TextDrawHideForPlayer(playerid, Text:Welcome2);
TextDrawHideForPlayer(playerid, Text:Welcome3);
return 1;
}
SetTimerEx("HideText", 20000, 0, "i", playerid);
Under OnPlayerConnect
pawn Код:
|
new HideTxtDrwTimer[MAX_PLAYERS]; //put this at the top of your script somewhere under #include <a_samp> make sure its above OnGameModeInit though and outside of any other callbacks or functions.
HideTxtDrwTimer[playerid] = SetTimerEx("HideTxtDrws",25000, false,"i",playerid);//put this in OnPlayerConnect
forward HideTxtDrws(playerid);
public HideTxtDrws(playerid)
{
TextDrawHideForPlayer(playerid, Text:Welcome0);
TextDrawHideForPlayer(playerid, Text:Welcome1);
TextDrawHideForPlayer(playerid, Text:Welcome2);
TextDrawHideForPlayer(playerid, Text:Welcome3);
KillTimer(HideTxtDrwTimer[playerid]);
return 1;
}