SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 20/07/2010, 07:53 PM   #1
VictorMartinez
Big Clucker
 
Join Date: Jun 2010
Posts: 84
Reputation: 0
Question Function Help

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?
VictorMartinez is offline  
Old 20/07/2010, 07:56 PM   #2
kc
High-roller
 
kc's Avatar
 
Join Date: Aug 2007
Posts: 1,167
Reputation: 107
Default Re: Function Help

This section is for people to help others to script.

If you want someone to make something for you, see http://forum.sa-mp.com/showthread.php?t=118885
kc is offline  
Old 20/07/2010, 07:58 PM   #3
VictorMartinez
Big Clucker
 
Join Date: Jun 2010
Posts: 84
Reputation: 0
Default Re: Function Help

that's for much larger scripts this is a simple script. I'm aware of that thread. Help anyone?
VictorMartinez is offline  
Old 20/07/2010, 09:54 PM   #4
VictorMartinez
Big Clucker
 
Join Date: Jun 2010
Posts: 84
Reputation: 0
Default Re: Function Help

bump bump bump bump bump
VictorMartinez is offline  
Old 21/07/2010, 01:54 AM   #5
Kitten
High-roller
 
Kitten's Avatar
 
Join Date: Jul 2010
Location: Canada
Posts: 2,344
Reputation: 243
Default Re: Function Help

stop bumping
Kitten is offline  
Old 21/07/2010, 01:57 AM   #6
Kar
High-roller
 
Join Date: May 2010
Location: Black Asylum
Posts: 2,876
Reputation: 280
Default Re: Function Help

dud ejust make a freakin timer
Kar is offline  
Old 21/07/2010, 02:36 AM   #7
DJDhan
High-roller
 
DJDhan's Avatar
 
Join Date: Oct 2009
Location: Canada
Posts: 1,163
Reputation: 3
Default Re: Function Help

Code:
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;
}
Code:
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.
__________________
DJDhan is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.