OnPlayerRequestClass Problem.
#1

Hello guys. I am scrtpting a TDM script as i never made any, and so, the problems started to show up. Actualy i made it with 2 teams, but after login, on class choise you can choise between the 2 teams, skins, but you don't see the skins. You see nothing, you hear it changing when you click NEXT, but ou don't see the skin you are choising..

What code i have related to this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    return 1;
}

forward SetPlayerTeamFromClass(playerid, classid);
public SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0)
    {
        gTeam[playerid] = TEAM_CRIME;
    }
    else if(classid == 1)
    {
        gTeam[playerid] = TEAM_POLICE;
    }
}
Thank you.
Reply
#2

You need to use SetPlayerPos SetPlayerFacingAngle SetPlayerCameraPos SetPlayerCameraLookAt to make that.
Reply
#3

I will help u after school, just come on the server when u see im there
Reply
#4

Add to OnPlayerRequestClass this, for example:

SetPlayerPos(playerid, 2105.3127, -2410.7041, 15.4429);
SetPlayerFacingAngle(playerid, -90.2049);
SetPlayerCameraPos(playerid, 2108.0005, -2411.1997, 16.3132);
SetPlayerCameraLookAt(playerid, 2107.0256, -2410.9897, 16.2032, CAMERA_MOVE);
Reply
#5

Thanks all. And Sure Milan.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)