02.06.2012, 19:12
you mean the skin dont line up?
i do something similar
you may need to set the spawn info in OnPlayerClassRequest
also.
hope i understood you right.
this will set the position and skin when they click the spawn button.
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;
}
this will set the position and skin when they click the spawn button.