10.07.2010, 08:14
Just do this :
You get the point.
Also, don't forget to SetPlayerInterior(playerid, 0) on player spawn :P
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
if(classid == 0)
{
...
}
if(classid == 1)
{
...
}
......
return 1;
}
Also, don't forget to SetPlayerInterior(playerid, 0) on player spawn :P