Spawning Player without Class Selection
#1

I was trying to create something like, If player is registered, he should spawn without entering to class selection. It seems to work, but only when we press any of the class selection keys ( Left/Right Arrow). help me please..

So far I got this.

Code:
public OnPlayerRequestClass(playerid, classid)
{
	if (udb_Exists(PlayerName(playerid)))
		{
	SpawnPlayer(playerid);
 	SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("Skin"));
	SendClientMessage(playerid, White, "Account Found! Please login with /login [PASS].");
		}
	else
		{
	SetPlayerPos(playerid, 2110.428955, 2062.340332, 54.546875);
	SetPlayerFacingAngle(playerid, 90.0139);
	SetPlayerInterior(playerid, 0 );
	SetPlayerCameraPos(playerid, 2107.428955, 2062.340332, 56.2);
	SetPlayerCameraLookAt(playerid, 2110.428955, 2062.340332, 55.20);
		}
	return 1;
}
Reply


Messages In This Thread
Spawning Player without Class Selection - by Vichuzz - 14.09.2009, 16:49
Re: Spawning Player without Class Selection - by Finn - 14.09.2009, 17:20
Re: Spawning Player without Class Selection - by Vichuzz - 15.09.2009, 08:46
Re: Spawning Player without Class Selection - by Face9000 - 13.05.2012, 23:33
Re: Spawning Player without Class Selection - by Yuryfury - 14.05.2012, 02:38
Re: Spawning Player without Class Selection - by dowster - 14.05.2012, 03:24

Forum Jump:


Users browsing this thread: 1 Guest(s)