/enter problem to the FBI HQ -
Mr. Despair - 16.08.2010
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.
Код:
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);
}
Those are pretty much all the teleport coordinates. The pickup is at this coordinate
Код:
326.5671,-1515.8308,36.0325
I want someone to be able to go there and press /enter and go inside of the building, any help?
Re: /enter problem to the FBI HQ -
Mr. Despair - 16.08.2010
I know this isn't hard guys, please can someone help me?
Re: /enter problem to the FBI HQ -
Kayla.S - 16.08.2010
Why not use
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup?
IMO checkpoints are the best way to do it. Players won't have to type /enter or /exit all they have to do is walk into the checkpoint and it'll tele you to the place you want. If you're wanting to go the checkpoint way, I can help you out, as that's what I'm currently using.
Re: /enter problem to the FBI HQ -
Mr. Despair - 16.08.2010
Yeah, what's the checkpoint way?
Re: /enter problem to the FBI HQ -
Kayla.S - 16.08.2010
You'll need a checkpoint streamer. This is the one I'm using. It has alot of other features, but you don't need to use all of them, if you don't want.
https://sampforum.blast.hk/showthread.php?tid=102865