SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 05/07/2018, 01:10 AM   #1
Trevor19012
Big Clucker
 
Join Date: Aug 2013
Location: United States namely.
Posts: 88
Reputation: 25
Default Custom Textdraw Issue

Hello!

I have created a custom textdraw of my site logo and everything works all fine except I want it to show OnPlayerConnect. In my script, if you have an account and you connect the dialog appears before your class selection and I used a textdraw editor to try and atleast position it above it.

However, the only issue with my textdraw is that it does not appear when a player connects. I have tried setting it as global and as player(incase global was wrong).

The textdraw does work when I do a /test command on it to make it show and it appears just fine.

I am very stumped on this as I feel I have tried everything, any help is appreciated. If you need code I will gladly give some on request. If this is the wrong section I apologize, I just felt it should be posted here because it has to deal with a .DL feature.

Thank you!
__________________
Make an ordinary moment, extraordinary!
Trevor19012 is offline   Reply With Quote
Old 05/07/2018, 01:38 AM   #2
ForT
Gangsta
 
ForT's Avatar
 
Join Date: Sep 2012
Location: Florianópolis - SC Country: Brazil
Posts: 657
Reputation: 240
Default Re: Custom Textdraw Issue

You need to show custom textdraws in OnPlayerFinishedDownloading.
__________________


Coming soon
ForT is offline   Reply With Quote
Old 05/07/2018, 01:46 AM   #3
Trevor19012
Big Clucker
 
Join Date: Aug 2013
Location: United States namely.
Posts: 88
Reputation: 25
Default Re: Custom Textdraw Issue

Quote:
Originally Posted by ForT View Post
You need to show custom textdraws in OnPlayerFinishedDownloading.
Wouldn't that make it appear everytime the player switches virtual worlds as according to the wiki or am I reading this wrong?

If I also needed to do this then why would it work when I did a test command on it without calling this function?
__________________
Make an ordinary moment, extraordinary!
Trevor19012 is offline   Reply With Quote
Old 05/07/2018, 01:51 AM   #4
ForT
Gangsta
 
ForT's Avatar
 
Join Date: Sep 2012
Location: Florianópolis - SC Country: Brazil
Posts: 657
Reputation: 240
Default Re: Custom Textdraw Issue

Yes, but you can show the textdraws if the player is not logged in:
PHP Code:
public OnPlayerFinishedDownloading(playeridvirtualworld)
{
    if (!
logged)
    {
        
Show textdraws...
    }
    return 
1;

__________________


Coming soon
ForT is offline   Reply With Quote
Old 05/07/2018, 02:06 AM   #5
Trevor19012
Big Clucker
 
Join Date: Aug 2013
Location: United States namely.
Posts: 88
Reputation: 25
Default Re: Custom Textdraw Issue

Quote:
Originally Posted by ForT View Post
Yes, but you can show the textdraws if the player is not logged in:
PHP Code:
public OnPlayerFinishedDownloading(playeridvirtualworld)
{
    if (!
logged)
    {
        
Show textdraws...
    }
    return 
1;

Works now, thank you!
__________________
Make an ordinary moment, extraordinary!
Trevor19012 is offline   Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use custom Textdraw images? alanhutch SA-MP 0.3.DL 9 29/05/2018 12:12 AM
How do we create custom textdraw? StrikerZ SA-MP 0.3.DL 1 03/03/2018 03:27 PM
Textdraw with custom .txd WknRO Scripting Help 1 08/02/2018 08:10 AM
CUSTOM Texture as Textdraw SEnergy Scripting Help 1 13/08/2012 08:26 PM


All times are GMT. The time now is 03:41 PM.


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