Class selection
#1

Heey scripters
I made a test player(cj)lol
And i added gametext to player selection like this:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1962.1644,1343.0841,15.4823);
	SetPlayerFacingAngle(playerid,88.5801);
 	SetPlayerCameraPos(playerid, 1957.5919,1343.1099,15.3746);
	SetPlayerCameraLookAt(playerid, 1962.1644,1343.0841,15.4823);
	switch(classid)
	{
		case 0:
		{
			GameTextForPlayer(playerid, "~y~Civilian", 999999, 6);
		}
	}
	return 1;
}
And when i spawn i see gametext:Civilian.
Normally if i do this it works. How to solve this?

Thanks Admigo
Reply
#2

You could try adding this OnPlayerSpawn

public OnPlayerSpawn
{
GameTextForPlayer(playerid,"",0,0);
}
Reply
#3

or just change 999999 because it is the time of the text.
Reply
#4

Okay thanks dude!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)