SA-MP Forums Archive
Function Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Function Help (/showthread.php?tid=161670)



Function Help - VictorMartinez - 20.07.2010

Can someone make me a custom function like this?

TextDrawHideForPlayerEx(playerid, TextDrawID, Time);

parameters
playerid- the id of the player
TextDrawID- the id of the textdraw
Time- time in miliseconds

Let's say there's a textdraw called "Text:WelcomeMessage" and I want to hide it in 5 seconds I would do

TextDrawHideForPlayerEx(playerid, Text:WelcomeMessage, 5000);


Please?


Re: Function Help - kc - 20.07.2010

This section is for people to help others to script.

If you want someone to make something for you, see https://sampforum.blast.hk/showthread.php?tid=118885


Re: Function Help - VictorMartinez - 20.07.2010

that's for much larger scripts this is a simple script. I'm aware of that thread. Help anyone?


Re: Function Help - VictorMartinez - 20.07.2010

bump bump bump bump bump


Re: Function Help - Kitten - 21.07.2010

stop bumping


Re: Function Help - Kar - 21.07.2010

dud ejust make a freakin timer


Re: Function Help - DJDhan - 21.07.2010

Код:
forward TextDrawHideForPlayerEx(playerid, tid, Time);

public TextDrawHideForPlayerEx(playerid, tid, Time)
{
	TextDrawHideForPlayer(playerid,Text:tid);
	new timer = SetTimerEx("ShowTextDraw",Time,0,"ii",playerid,tid);
	return 1;
}
Код:
forward ShowTextDraw(playerid,tid);

public ShowTextDraw(playerid,tid)
{
	TextDrawShowForPlayer(playerid,Text:tid);
	return 1;
}
I understand that this code isn't tested but it is just an idea, it might tick some brains.