Position Help!
#1

look at this
pawn Код:
SetPlayerPos(playerid,233.3431,1936.7926,33.8984);
    SetPlayerCameraPos(playerid,228.0594,2099.4875,119.2728);
it's from this
pawn Код:
AddPlayerClass(0,228.0594,2099.4875,119.2728,180.4577,0,0,0,0,0,0); //
AddPlayerClass(160,233.3431,1936.7926,33.8984,179.2217,0,0,0,0,0,0); //
Why it spaws at Red county? and Camera is not at the position i want
someone help pleaze
Reply
#2

Where is the code called? Maybe something is wrong there.
Reply
#3

pawn Код:
SetPlayerSkin(playerid, 160);
        SetPlayerPos(playerid,233.3431,1936.7926,33.8984);
        SetPlayerCameraPos(playerid,228.0594,2099.4875,119.2728);
        SetPlayerCameraLookAt(playerid,228.0594,2099.4875,119.2728);
        SetPlayerColor(playerid,COLOR_BRIGHTRED);
    }
Reply
#4

He wants you to show the whole callback.
Reply
#5

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    if(classid == 0)
    {
        gTeam[playerid] = PAKISTAN;
        GameTextForPlayer(playerid,"~r~Pakistan",3000,5);
        SetPlayerSkin(playerid, 160);
        SetPlayerPos(playerid,233.3431,1936.7926,33.8984);
        SetPlayerCameraPos(playerid,228.0594,2099.4875,119.2728);
        SetPlayerCameraLookAt(playerid,233.3431,1936.7926,33.8984);
        SetPlayerColor(playerid,COLOR_BRIGHTRED);
    }
    else if(classid == 1)
    {
        gTeam[playerid] = USA;
        GameTextForPlayer(playerid,"~b~United Stats Of America Special Force",3000,5);
        SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
        SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
        SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
        SetPlayerSkin(playerid,285);
        SetPlayerColor(playerid,COLOR_BLUE);
        }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)