SA-MP Forums Archive
HELP /VIPLocker - 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: HELP /VIPLocker (/showthread.php?tid=465994)



HELP /VIPLocker - FLapJAck - 25.09.2013




Re: HELP /VIPLocker - Voxel - 25.09.2013

What exactly is your problem?

judging from your screenshot you are not exactly at the vip locker ? so i supose you need it to only open when you are near it.

use this:
pawn Code:
//put this under your /viplockercommand
IsPlayerInRangeOfPoint(playerid,2.0,x,y,z)) //2.0 = distance u can be away form vip locker, and put the coords of where your vip locker is located at x,y,z
{
    //show the vip locker dialog
}