26.08.2014, 21:10
I spawn at blueberry on /exit
pawn Код:
CMD:exit(playerid, params[])
{
for(new i=0; i < MAX_DOORS; i++)
{
if(!IsPlayerInRangeOfPoint(playerid, 2.0, DoorInfo[i][dInteriorX], DoorInfo[i][dInteriorY], DoorInfo[i][dInteriorZ]) && DoorInfo[i][dInteriorInt] == GetPlayerInterior(playerid) && DoorInfo[i][dInteriorVir] == GetPlayerVirtualWorld(playerid)) continue;
SetPlayerInterior(playerid, DoorInfo[i][dExteriorInt]);
SetPlayerVirtualWorld(playerid, DoorInfo[i][dExteriorVir]);
SetPlayerPos(playerid, DoorInfo[i][dExteriorX], DoorInfo[i][dExteriorY], DoorInfo[i][dExteriorZ]);
SetPlayerFacingAngle(playerid, DoorInfo[i][dExteriorAngle]);
SetCameraBehindPlayer(playerid);
LoadObjectsForPlayer( playerid );
}
return 1;
}