Custom Textdraw Issue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (
https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (
https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: Custom Textdraw Issue (
/showthread.php?tid=656007)
Custom Textdraw Issue -
Trevor19012 - 05.07.2018
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!
Re: Custom Textdraw Issue -
ForT - 05.07.2018
You need to show custom textdraws in OnPlayerFinishedDownloading.
Re: Custom Textdraw Issue -
Trevor19012 - 05.07.2018
Quote:
Originally Posted by ForT
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?
Re: Custom Textdraw Issue -
ForT - 05.07.2018
Yes, but you can show the textdraws if the player is not logged in:
PHP код:
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
if (!logged)
{
Show textdraws...
}
return 1;
}
Re: Custom Textdraw Issue -
Trevor19012 - 05.07.2018
Quote:
Originally Posted by ForT
Yes, but you can show the textdraws if the player is not logged in:
PHP код:
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
if (!logged)
{
Show textdraws...
}
return 1;
}
|
Works now, thank you!