onplayerrequestclass problem
#3

Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  if(Classid == /*Number here*/)
  {
    //Set the player camera pos and player pos at a different placed.
  }
  return 1;
}
Here an example:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(Classid == /*Number here*/)
   
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,x,y,z);//Pos of the character
        SetPlayerFacingAngle(playerid,angle);//Angle of character
        LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);//Animation
        SetPlayerCameraPos(playerid, x,y,z);//Change this
        SetPlayerCameraLookAt(playerid,x,y,z);//Change this
       
    }
    return 1;
}
EDIT: Sorry, something wrong, now its okay
Reply


Messages In This Thread
onplayerrequestclass problem - by ruckfules99 - 14.02.2010, 17:26
Re: onplayerrequestclass problem - by [HiC]TheKiller - 14.02.2010, 17:40
Re: onplayerrequestclass problem - by Fedee! - 14.02.2010, 17:45
Re: onplayerrequestclass problem - by ruckfules99 - 14.02.2010, 23:44
Re: onplayerrequestclass problem - by snoob - 15.02.2010, 01:43
Re: onplayerrequestclass problem - by ruckfules99 - 15.02.2010, 02:13
Re: onplayerrequestclass problem - by Fedee! - 15.02.2010, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)