16.08.2010, 18:08
I'm trying to move the FBI hq to LS from LV and I manage to move the pickup "I" in front of the door and it says /enter when you get on top of it, but it doesn't TP to you anywhere. These are my FBI coords.
Those are pretty much all the teleport coordinates. The pickup is at this coordinate
I want someone to be able to go there and press /enter and go inside of the building, any help?
Код:
else if(!strcmp(sendername, "bot_fbilobby1", true)) { printf("NPC: OnPlayerSpawn: %d", playerid); SetPlayerPos(playerid, 238.8438, 112.8222, 1003.2188); SetPlayerFacingAngle(playerid, 268.8427); SetPlayerSkin(playerid, 286); //fbi 1 } else if(!strcmp(sendername, "bot_fbilobby2", true)) { printf("NPC: OnPlayerSpawn: %d", playerid); SetPlayerPos(playerid, 246.5118, 120.3925, 1003.2645); SetPlayerFacingAngle(playerid, 180.0); SetPlayerSkin(playerid, 141); //fbi 2 }
Код:
//ENTRANCES iFBI = CreatePickup(1239, 23, 1039.8109,1014.2955,11.0000); //FBI
Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,1039.8109,1014.2955,11.0000)) //FBI HQ { SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 238.4606,140.6438,1003.0234); SetPlayerFacingAngle(playerid, 0.0000); GameTextForPlayer(playerid, "~w~Federal Bureau ~n~of Investigation", 5000, 1); PlayerInfo[playerid][pInt] = 3; SetCameraBehindPlayer(playerid); }
Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,246.3711,108.7005,1003.2188)) //FBI HQ { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1774.6836,-1665.9792,14.4277); PlayerInfo[playerid][pInt] = 0; SetPlayerFacingAngle(playerid, 125.0000); SetCameraBehindPlayer(playerid); }
Код:
else if(IsPlayerInRangeOfPoint(playerid, 2.5, 238.4606,140.6438,1003.0234)) // FBI HQ { SetPlayerPos(playerid,1039.8109,1014.2955,11.0000); SetPlayerInterior(playerid, 0); }
Код:
326.5671,-1515.8308,36.0325