Little help about spawning players
#1

So yeah I use this code to spawn a player to spawn ofc, It does set player position and everything but the camera's bugged i tried SetCameraBehindPlayer(playerid); but nothing

pawn Код:
SetSpawnInfo(playerid, 0, 0, 1728.5672, -1668.3918, 22.6093, 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
SpawnTPlayer(playerid);
Here's the "SpawnTPlayer"

pawn Код:
FUNCTION: SpawnTPlayer(playerid)
{
    SetPlayerHealth(playerid, 99.0);
    SetPlayerArmour(playerid, 99.0);
    SetCameraBehindPlayer(playerid);
    if(p_data[playerid][pReg] == 1)
    {
        SetPlayerSkin(playerid, p_data[playerid][pSkin]);
    }
    if(GetPlayerSkin(playerid) == 0)
    {
        p_data[playerid][pSkin] = 59;
        SetPlayerSkin(playerid, 59);
    }
    if(DMZ[playerid] == 0)
    {
        SetPlayerPos(playerid, 1728.5672, -1668.3918, 22.6093);
        SetPlayerInterior(playerid, 18);
        SetPlayerFacingAngle(playerid, 45.420341);
    }  
    return true;
}
Reply


Messages In This Thread
Little help about spawning players - by IdonTmiss - 20.06.2018, 00:18
Re: Little help about spawning players - by Sew_Sumi - 20.06.2018, 01:50
Re: Little help about spawning players - by IdonTmiss - 20.06.2018, 02:29

Forum Jump:


Users browsing this thread: 1 Guest(s)