OnPlayerRequestClass Help
#1

Code >
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid2182.5454,1285.5814,42.9859);
    
SetPlayerFacingAngle(playerid,177.0116);
    
SetPlayerCameraPos(playerid,1523.5961,-49.4418,1003.1310);
    
SetPlayerCameraLookAt(playerid1523.7103,-45.2526,1002.1310);
    
PlayerPlaySound(playerid,SOUND_MUSIC1,-2109.7576,184.2289,35.1503);
    
SetPlayerClass(playeridclassid);
    if( 
Player_GetGangplayerid ) != GANG_INVALID )
        
Player_RemoveFromGangplayerid ); 
The Picture Of The Error >

There's Must Piramyd.
Help Me Please....
Reply
#2

You sure you got the right z? 1003 seems too much.
Reply
#3

AddPlayerClass(259,2182.5454,1285.5814,42.9859,87. 7773,0,0,0,0,0,0); // blablabla
Reply
#4

It Said That
Reply
#5

AddPlayerClass does not set the camera position ... Your camera is looking at the sky because you specifically told it to look at the sky.
Reply
#6

That's why when you create a new pawn file there is this :
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;

Reply
#7

So, What Is The Right Codes?
Please Tell Me
Reply
#8

There's also no need to do
Код:
SetPlayerClass(playerid, classid);
Especially on class selection.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)