ClassSelection
#1

I added to OnPlayerConnect,SetSpawnInfo to skip OnPlayerRequestClass,this is working.
The player is setted to x,y,z from SetSpawnInfo and the classes is somewhere else,
Then i called OnPlayerRequestClass with a timer,and at the end of the timer i kill the player to ForceClassSelection,but into OnGameModeInit i have classes to some coordinates but after ForceClassSelection the camera stays where i wan`t but the skins from class selection is at x,y,z from SetSpawnInfo.
Is any way to keep them there but not to delete SetSpawnInfo,if you ask why i`m doing like this..i don`t want to see the player when is that timer on and when he is killed.

Any ideas?
Reply
#2

you mean the skin dont line up?


i do something similar
you may need to set the spawn info in OnPlayerClassRequest
also.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{

    SetPlayerInterior       (playerid,14);
    SetPlayerPos            (playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle    (playerid,90.0);
    SetPlayerCameraPos      (playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt   (playerid,258.4893,-41.4008,1002.0234);
    SetSpawnInfo
    (
        playerid,
        255,
        classid,
        gPlayerInfo[playerid][E_PLAYER_X],
        gPlayerInfo[playerid][E_PLAYER_Y],
        gPlayerInfo[playerid][E_PLAYER_Z],
        gPlayerInfo[playerid][E_PLAYER_A],
        0,
        0,
        0,
        0,
        0,
        0
    );
    return 1;
}
hope i understood you right.

this will set the position and skin when they click the spawn button.
Reply
#3

Not that,before the spawn botton appaer..thanks anyway but fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)