[MAP/FS]SFPD Gates 2
#1

..::[FS]SFPD Gates 2::..
Hey, version 1 (http://forum.sa-mp.com/index.php?topic=66976.0).

It has 2 shutters, which were too small So I used 2, making it look, bad...

But enough of that, on with version 2!

New features:

Actual SFPD shutter (Thanks Vince )
A gate at the entrance
Slower moving shutter (More like single player)

Downloads...

Pastebin: http://pawn.pastebin.com/f1b9995cd
PWN:

AMX:


Video:
High quality: http://www.sendspace.com/file/ybay5w
Low Quality: http://uk.youtube.com/watch?v=-EyC_ci62S8

Commands are RCON, but edit in the own files:

Changes "IsPlayerAdmin" to "IsPlayerConnected" its the easiest way without complication incase you dont do sctipring...

Commands:

/openshutter - Open the main shutter
/closeshutter - Close the main shutter
/stopshutter - Stop the main shutter

/opengate - Open the front gate
/closegate - Close the front gate
/stopgate - Stopthe front gate

Have fun, please comment!

Mike
Reply
#2

Good job
P.S. This is CroSSS
Reply
#3

Nicee

in ur new release make this commands just for cops !! put all cops id ! if u need wiki so go here :

http://streetplaya.hopto.org/SAMP_Wi...ns_Public.html
Reply
#4

nice

you should add something, that the gates open automatically when a player with a police skin is near
Reply
#5

Quote:
Originally Posted by [M
deLux ]
nice

you should add something, that the gates open automatically when a player with a police skin is near
I got PlayerToPoint working, but decided to remove it, I dont know about the cop skins, but ill try and do auto opening

Can you tell me how to include "if is cop" to playertopoint?

Ive never done skin check before, ill look bout and stuff, but and help appriciated.

P.S: Im making 2.1 with some changes:
Slower shutter - Looks way to quick.
Try adding playertopoint, but it will just be for RCON unless i can check skins
Reply
#6

I think you need to define a team for the cops. But because it's a filterscript I don't think that's possible. But, in Godfather and other scripts, there's a function IsCopCar(carid) . So I guess you can make IsACop too. I think this will work:

pawn Код:
stock IsACop(playerid)
new S;
S = GetPlayerSkin(playerid)
if(S >= 280 && S <= 287) // 286 is FBI guy and 287 is army guy, if you dont want those, change 287 to 285
{
  return 1;
}
Reply
#7

I tried doing PlayerToPoint but it looks crap, it goes up a bit, then goes down then up etc.

I set the timer for 20000 and it does it every 1 second, forget it, sorry.

Now working on LSPD gates.
Reply
#8

why make 2 topics? just post in one... and have the old links there and add the new ones? if i would use new topics for my include... it was be 8 topics lol....
Reply
#9

Quote:
Originally Posted by .::Dark Xe0::.
why make 2 topics? just post in one... and have the old links there and add the new ones? if i would use new topics for my include... it was be 8 topics lol....
Ok, sorry.
Reply
#10

Quote:
Originally Posted by Vince
I think you need to define a team for the cops. But because it's a filterscript I don't think that's possible. But, in Godfather and other scripts, there's a function IsCopCar(carid) . So I guess you can make IsACop too. I think this will work:

pawn Код:
stock IsACop(playerid)
new S;
S = GetPlayerSkin(playerid)
if(S >= 280 && S <= 287) // 286 is FBI guy and 287 is army guy, if you dont want those, change 287 to 285
{
  return 1;
}
is there a way to make gate open automtik with a name and not a skin ?! i mean if name "u put name" near gate it will be opened
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)