Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
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.
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
OnPlayerConnect? OnPlayerSpawn?
Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
I don't want them to create when people join. Some times like 5 - 10 people join in 30 secs, could cause memory spikes...
Posts: 244
Threads: 37
Joined: May 2009
Reputation:
0
Use a for loop:
for(new playerid;playerid<MAX_PLAYERS;playerid++)
{
//code here
}
Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
I thought about that. But if I loop it, it gets called x amout of time. And some point disappears.
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
Create at OnPlayerConnect and destroy at OnPlayerDisconnect.