[Req] LSPD Door to Garage
#7

To Make that you can Enter / Exit from an LSPD Garage or ANY place , Here you go :


I Use STRCMP btw..

PHP код:
if (strcmp("/enter"cmdtexttrue6) == 0)
{
if(
IsPlayerInRangeOfPoint(playeridrx,y,z)) // Change the X Y Z to TheCo-ordinates where you type /enter and R to the Range
             
{
            
SetPlayerPos(playerid,x,y,z); // Change the X Y Z to the place where you get TP'ed to
            
SetPlayerInterior(playerid,No,); // Change No, to the Interior ID you want
            
GameTextForPlayer(playerid"~w~PD"50001); // Change PD to the place where he get Tp'ed to name
            
SetCameraBehindPlayer(playerid);
              return 
1;
                        } 
And do the same With the /Exit CMD but Reverse the Co-ordinates of IsPlayerInRangeOfPoint and SetPlayerPos - Hope i helped
Reply


Messages In This Thread
[Req] LSPD Door to Garage - by Leko - 07.02.2012, 11:10
AW: [Req] LSPD Door to Garage - by Tigerkiller - 07.02.2012, 11:36
Re: [Req] LSPD Door to Garage - by Leko - 08.02.2012, 10:53
Re : [Req] LSPD Door to Garage - by ricardo178 - 08.02.2012, 10:56
Re: [Req] LSPD Door to Garage - by Leko - 08.02.2012, 11:02
Re : Re: [Req] LSPD Door to Garage - by ricardo178 - 08.02.2012, 11:05
Re: [Req] LSPD Door to Garage - by -CaRRoT - 08.02.2012, 11:09
Re: [Req] LSPD Door to Garage - by Leko - 09.02.2012, 10:23
Re: [Req] LSPD Door to Garage - by Leko - 09.02.2012, 10:28
Re: Re : [Req] LSPD Door to Garage - by MP2 - 09.02.2012, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)