How To Skip Class Selection?
#3

almost the same thing everytime, it always starts with class selection, the only thing i ever noticed changing all this is that the arrow keys spawn the player auto in the class selection, which does not help.

sorry if im being kind of vague, its one of those deals where you spend an hour messing around with something, trying anything you can think of with no success. kind of forgot everything i have tried.

for example right now i have

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
pawn Code:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid, 2480.2788,41.7482,26.4844);
    SetPlayerCameraPos(playerid, 2466.5422,41.7482,27.3437);
    SetPlayerCameraLookAt(playerid, 2386.2788,41.7482,26.4844);
    TogglePlayerControllable(playerid, 0);
    return 1;
}
and it starts you at the class selection menu with the vinewood backdrop.

then, i tried deleting the above OnPlayerRequestClass, and leaving everything else, and I get the same results.

now i try

pawn Code:
public OnPlayerConnect(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
pawn Code:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid, 2480.2788,41.7482,26.4844);
    SetPlayerCameraPos(playerid, 2466.5422,41.7482,27.3437);
    SetPlayerCameraLookAt(playerid, 2386.2788,41.7482,26.4844);
    TogglePlayerControllable(playerid, 0);
    return 1;
}
same results

i just also tried just OnPlayerConnect, with and without this SpawnPlayer
pawn Code:
public OnPlayerConnect(playerid)
{
    SpawnPlayer(playerid);
    SetPlayerPos(playerid, 2480.2788,41.7482,26.4844);
    SetPlayerCameraPos(playerid, 2466.5422,41.7482,27.3437);
    SetPlayerCameraLookAt(playerid, 2386.2788,41.7482,26.4844);
    TogglePlayerControllable(playerid, 0);
    return 1;
}

Reply


Messages In This Thread
How To Skip Class Selection? - by happyface - 09.07.2009, 23:04
Re: How To Skip Class Selection? - by happyface - 09.07.2009, 23:19
Re: How To Skip Class Selection? - by happyface - 09.07.2009, 23:22
Re: How To Skip Class Selection? - by ruarai - 10.07.2009, 00:33
Re: How To Skip Class Selection? - by happyface - 10.07.2009, 00:37

Forum Jump:


Users browsing this thread: 5 Guest(s)