14.09.2009, 16:49
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.
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; }