Need fast help! [Will pay!] - 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)
+--- Thread: Need fast help! [Will pay!] (
/showthread.php?tid=338360)
Need fast help! [Will pay!] -
Kukkurloom - 29.04.2012
Hello!
How I can script like:
When player is front of the 24/7 door, only then he can write CMD /enter. When he leaves from that area he can't use that cmd anymore.
Re: Need fast help! [Will pay!] -
AMEENAMEEN - 29.04.2012
gimme ur msn / skype
Re: Need fast help! [Will pay!] -
Kukkurloom - 29.04.2012
My MSN :
whyyoursad@hotmail.com
Re: Need fast help! [Will pay!] -
Crazymax - 29.04.2012
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Re: Need fast help! [Will pay!] -
NL-Sultan - 29.04.2012
You should add a script which says that you cant type it if you're not in front of a door. Should be some functions for it. You sure you have a /exit command?
Re: Need fast help! [Will pay!] -
niels44 - 29.04.2012
use this:
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Re: Need fast help! [Will pay!] -
SupremeCommander - 29.04.2012
I'll give you an example for ZCMD
pawn Код:
CMD:enter(playerid,params[])
{
if(IsPlayerInRangeOfPoint(*Your coods here*)
{
SetPlayerPos(*Your Coords here*);
SetPlayerFacingAngle(*your angle coords here*);
}
}