SA-MP Forums Archive
[Req] LSPD Door to Garage - 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: [Req] LSPD Door to Garage (/showthread.php?tid=316511)



[Req] LSPD Door to Garage - Leko - 07.02.2012

Well, I scripted something but I havent succed!
Can anyone tell me how to script that damn door? Its when cops go to garage


AW: [Req] LSPD Door to Garage - Tigerkiller - 07.02.2012

why you dont learn scripting first ? in the tutorials sections you can find it! and how you make an vip system


Re: [Req] LSPD Door to Garage - Leko - 08.02.2012

Can anyone tell me how to give family slot IG, to someone?


Re : [Req] LSPD Door to Garage - ricardo178 - 08.02.2012

Man... All scripts are differents.
Scripting a gate is the easiest thing in pawn.
Maybe time to read:

https://sampwiki.blast.hk/
http://forum.sa-mp.com/forumdisplay.php?f=70


Re: [Req] LSPD Door to Garage - Leko - 08.02.2012

Ricardo - Thanks, I am beginer scripter, so I need help.! btw, Thanks :d


Re : Re: [Req] LSPD Door to Garage - ricardo178 - 08.02.2012

Quote:
Originally Posted by Leko
Посмотреть сообщение
Ricardo - Thanks, I am beginer scripter, so I need help.! btw, Thanks :d
No problem.. Almost all of us learnt like that. Reading tutorials and wiki.
You have to know the basic things.. Otherway is the same as making a cockie, without know how to proply open an egg.(I know, stupid example)


Re: [Req] LSPD Door to Garage - -CaRRoT - 08.02.2012

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


Re: [Req] LSPD Door to Garage - Leko - 09.02.2012

Thanks Breto, thats very helpful!


Re: [Req] LSPD Door to Garage - Leko - 09.02.2012

one more thing, I got bored you guys!
How to give family slot to someone in my server?


Re: Re : [Req] LSPD Door to Garage - MP2 - 09.02.2012

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
Man... All scripts are differents.
Scripting a gate is the easiest thing in pawn.
Lies.

pawn Код:
#include <a_samp>

main()
{
    print("Hello World!");
}