Need help with /enter - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with /enter (
/showthread.php?tid=109266)
Need help with /enter -
j1mzz - 18.11.2009
I dont know if this is possible but ime editing a gamemode and i dont want the /enter command to enter a building but i want to walk in the building without entering a command.
How can i do this?
Re: Need help with /enter -
bigcomfycouch - 18.11.2009
In OnGameModeInit, you could put this
Код:
AddStaticPickup(1239, 2, x, y, z, 0);
Then, in OnPlayerPickUpPickup(playerid, pickupid) you could put
Код:
if(IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
{
SetPlayerPos(playerid, x2, y2, z2);
return 1;
}
And then add another pickup for the exit.
Alternatively, you could use
OnGameModeInit
Код:
pickup = CreatePickup(1239, 2, x, y, z, 0);
And
Код:
OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
SetPlayerPos(playerid, x2, y2, z2);
return 1;
}
return 1;
}
Re: Need help with /enter -
j1mzz - 19.11.2009
lol, thanks. Now ime gonna figure out how and where ime gonna add this

Ime kinda noob now.. :P
Re: Need help with /enter -
Enzo_Ferrari_V12 - 19.11.2009
ahh good you said that. Add me to msn.
Greenvomitfly@yahoo.com I've been scripting for a while now and... I've been working on a stunt server for some time now. I will buy a hosted listing for it in 7 days. I need noobs like you to teach, and in return, you help me with the stunt server. You get admin privs as well