20.06.2018, 00:18
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
Here's the "SpawnTPlayer"
pawn Код:
SetSpawnInfo(playerid, 0, 0, 1728.5672, -1668.3918, 22.6093, 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
SpawnTPlayer(playerid);
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;
}