Skin selection help please
#1

PHP код:
public OnGameModeInit()
{
    
AddPlayerClass(287,223.5235,1925.1610,23.6406,221.1536,0,0,0,0,0,0); 
    
AddPlayerClass(247,-402.3290,2222.6426,43.5189,283.2926,0,0,0,0,0,0); 
    
AddPlayerClass(122,-165.5029,2793.4370,83.2802,89.8229,0,0,0,0,0,0); 
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    if(
classid == 0)
    {
        
SetPlayerPos(playerid223.5235,1925.1610,23.6406);
        
SetPlayerCameraPos(playerid228.5235,1929.1610,24.6406);
        
SetPlayerCameraLookAt(playerid223.5235,1925.1610,23.6406);
    }
    if(
classid == 1)
    {
        
SetPlayerPos(playerid, -402.3290,2222.6426,43.5189);
        
SetPlayerCameraPos(playerid, -407.3290,2226.6426,44.5189);
        
SetPlayerCameraLookAt(playerid, -402.3290,2222.6426,43.5189);
    }
    if(
classid == 2)
    {
        
SetPlayerPos(playerid,-165.5029,2793.4370,83.2802);
        
SetPlayerCameraPos(playerid, -170.5029,2797.4370,84.2802);
        
SetPlayerCameraLookAt(playerid, -165.5029,2793.4370,83.2802);
    }
    return 
1;

I want the camera to travel from class to class while selecting but it is just setting the camera pos
and can somebody help me with those camera pos and look at co-ordinates?? they are kinda messed up

help me please

Thanks in advance
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)