Calling %s in a textdraw? Help needed.
#2

Here, put this function at the bottom of your script.
Код:
stock PlayerName(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  return name;
}
This makes using a player name 'easier'.

Код:
new str[48];//put this in your command
format(str,48,"%s is now AFK!",PlayerName(playerid);
TextDrawSetString(IsAFK,str);
TextDrawHideForAll(IsAFK);
TextDrawShowForAll(IsAFK);
SetTimer("HideTextTimer",5000,0);//optional
Код:
forward HideTextTimer();//optional
public HideTextTimer()
{
  TextDrawHideForAll(IsAFK);
}


Reply


Messages In This Thread
Calling %s in a textdraw? Help needed. - by Devine - 27.11.2009, 03:16
Re: Calling %s in a textdraw? Help needed. - by Rac3r - 27.11.2009, 07:01
Re: Calling %s in a textdraw? Help needed. - by Devine - 27.11.2009, 16:37
Re: Calling %s in a textdraw? Help needed. - by ExoSanty - 27.11.2009, 16:51
Re: Calling %s in a textdraw? Help needed. - by Devine - 27.11.2009, 16:52
Re: Calling %s in a textdraw? Help needed. - by Andy_McKinley - 27.11.2009, 16:59
Re: Calling %s in a textdraw? Help needed. - by Remi-X - 27.11.2009, 17:13
Re: Calling %s in a textdraw? Help needed. - by Devine - 27.11.2009, 22:27
Re: Calling %s in a textdraw? Help needed. - by Remi-X - 27.11.2009, 22:38
Re: Calling %s in a textdraw? Help needed. - by Devine - 28.11.2009, 00:30

Forum Jump:


Users browsing this thread: 1 Guest(s)