stimorol
05.09.2015, 15:35
Здравствуйте.
Сделал систему спавна:
stock SetPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pHouseCheck] == 1)
{
for(new h = 1; h <= m_h; h++)
{
if(strcmp(House[h][hOwner], GPNS(playerid),true) != 0) continue;
SetPlayerPos(playerid,HInts[House[h][hInterior]][hiX],HInts[House[h][hInterior]][hiY],HInts[House[h][hInterior]][hiZ]);
SetPlayerInterior(playerid,HInts[House[h][hInterior]][hiInt]);
SetPlayerVirtualWorld(playerid,House[h][hVirtWorld]);
}
}
else
{
SetPlayerPos(playerid, 2507.0801,-2122.6526,23.4558);
SetPlayerFacingAngle(playerid, 179.8550);
SetCameraBehindPlayer(playerid);
}
return true;
}
После:
SetPlayerVirtualWorld(playerid,House[h][hVirtWorld]);
Обязательно ставить return true?
Сделал систему спавна:
stock SetPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pHouseCheck] == 1)
{
for(new h = 1; h <= m_h; h++)
{
if(strcmp(House[h][hOwner], GPNS(playerid),true) != 0) continue;
SetPlayerPos(playerid,HInts[House[h][hInterior]][hiX],HInts[House[h][hInterior]][hiY],HInts[House[h][hInterior]][hiZ]);
SetPlayerInterior(playerid,HInts[House[h][hInterior]][hiInt]);
SetPlayerVirtualWorld(playerid,House[h][hVirtWorld]);
}
}
else
{
SetPlayerPos(playerid, 2507.0801,-2122.6526,23.4558);
SetPlayerFacingAngle(playerid, 179.8550);
SetCameraBehindPlayer(playerid);
}
return true;
}
После:
SetPlayerVirtualWorld(playerid,House[h][hVirtWorld]);
Обязательно ставить return true?