Posts: 438
Threads: 54
Joined: Mar 2013
How can i make a pickup with ID 1318, and when player is in it and they press "F" to get enter Cluckin Bell?
And when they want to exit, they will need to Press "F" again.
The pickup will always there, without disappearing, here's the Cluckin' Bell Coords:
X = 365.7158
X = -9.8873
Y = 1001.8516
Need help desperately.
Posts: 438
Threads: 54
Joined: Mar 2013
Thanks for the reply.
I've created that already, but it just TPed me without even pressing F.
And also, it TPed to Blueberry Accress.
Posts: 438
Threads: 54
Joined: Mar 2013
Well, i've changed the Pickup place in front of Cluckin Bell, then it teleported me to no where.
Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
Show the code you've change to please. (Firstly, try setting the SetPlayerInterior to the correct interior that you're using, if changing)
Posts: 438
Threads: 54
Joined: Mar 2013
Here's the code:
pawn Code:
#include <a_samp>
public OnGameModeInit()
{
CreatePickup(1318, 1, -1816.5437,618.0901,35.1719, 0);
return true;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -1816.5437,618.0901,35.1719))
{
SetPlayerPos(playerid, 364.8150,-11.6074,1001.8516);
SetPlayerInterior(playerid, 9);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 364.8150,-11.6074,1001.8516))
{
SetPlayerPos(playerid, -1816.5437,618.0901,35.1719);
SetPlayerInterior(playerid, 0);
}
}
return 1;
}
Posts: 438
Threads: 54
Joined: Mar 2013
I don't know man, that's really not working for me.