format textdraw - 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: format textdraw (
/showthread.php?tid=165777)
format textdraw -
ScottCFR - 06.08.2010
I am wondering where I would put a text draw that shows info, such as k/d:R on the screen. Like the create part.
I was gonna put it under OnGameModeInit but it doesn't support playerid.
Re: format textdraw -
ScottCFR - 06.08.2010
***Bump***
Re: format textdraw -
Hiddos - 06.08.2010
OnPlayerConnect? OnPlayerSpawn?
Re: format textdraw -
ScottCFR - 06.08.2010
I don't want them to create when people join. Some times like 5 - 10 people join in 30 secs, could cause memory spikes...
Re: format textdraw -
jonrb - 06.08.2010
Use a for loop:
for(new playerid;playerid<MAX_PLAYERS;playerid++)
{
//code here
}
Re: format textdraw -
ScottCFR - 06.08.2010
I thought about that. But if I loop it, it gets called x amout of time. And some point disappears.
Re: format textdraw -
MadeMan - 06.08.2010
Create at OnPlayerConnect and destroy at OnPlayerDisconnect.