[FilterScript] [FS]Remote Contol Vehicles **Version 2.0**
#1

Hi,

First of all, sorry for my bad English. (it really sucks )

Anyway,
today i tried to add some rc-vehicles in my server, the only problem was, you can't get in using the 'enter'-button.
And when you're inside it (i used PutPlayerInVehicle), you can't get out of it till you die.

So i made a little filterscript that allows you to enter and exit a rc-vehicle.

This fs includes 2 command:

- /rc
This will open a menu, there you can choose 1 of the 6 diffrent rc-vehicles.
When you choose one, the rc-car will get created and you will be put inside the vehicle.

To get out of the rc-vehicle, you can press the 'enter'-button.
The car will get destroyed immediately.

- /exitrc (if pressing the enter-buton doesn't work)
You will get removed from the vehicle and the rc-car will get destroyed immediately


You can also use the rc-vehicles inside Interiors!

Attention:
This filterscript uses 6 diffrent vehicletypes.
If your gamemode already use i.e. 67 vehicle-typs.
You can use max. 3 extra types.

So i made some configuration:
You can disable rc-types by changing the '1' to a '0' in this code:

Код:
//line 8-13
new AllowBandit = 1;
new AllowCam = 1;
new AllowTiger = 1;
new AllowBarron = 1;
new AllowGoblin = 1;
new AllowRaider = 1;
If you change a type to '0', this option will be disabled in the menu (using /rc)

================================================== ====================
Update 2.0:

- You are now able to shoot with the tank (Tiger) Credits to Lethal ofcourse!
- You are now able to change the settings (as admin) ingame.
- Settings can now get saved into a file called 'RCsettings' so when you restart this filterscript, old settings will get restored
- You can (dis)allow people to shoot with the tank
- To prevent all players on your server will spawn a rc-car and you may exeed the 700-vehicles-limit.
So now if somebody spawns a rc-car, the server will count.
You (as admin) can set a limit. If this limit is reached, players won't be able to spawn more rc-cars.

Commands added:
/rcsettings
/rccredits
/rchelp

- You can now change settings ingame (no restart needed!!) by typic /rcsettings
See Screenshots here below.
================================================== ===================

Download:
RC.pwn (MediaFire)
RC.amx (MediaFire)
pastebin (sort of) (f*ucked up indentation)


Credits:
- Lethal --> Shooting with tank function
- Yagu --> I got some ideas from his race-fs
- Dracoblue --> Dini-functions

Screenshots:






If you're gonna use this, please give credits

Please report bugs, tips or whatever.


Greetz,
Sandra
Reply
#2

Sandra, i got less words for it:
VERY VERY NICE!!!

Rksss
Reply
#3

This is really gd 1 suggestion though, can u release a version where the tank shoots (my code below), i have tested code and working fine

Код:
if((newkeys==KEY_FIRE)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))  {
	  if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 564)	  {
			new Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:az;
			GetPlayerPos(playerid,x,y,z);
			GetVehicleZAngle(GetPlayerVehicleID(playerid), az);
			x2 = x + (30 * floatsin(-az+5, degrees));
			y2 = y + (30 * floatcos(-az+5, degrees)); 
			CreateExplosion(x2,y2,z,3,4.0);
		}
	}
Reply
#4

Very Nice, Sandra
Reply
#5

there is already 1 but
nice work
Reply
#6

nice!

very good work
Reply
#7

Update 2.0:
Updates:
- You are now able to shoot with the tank (Tiger) Credits to Lethal ofcourse!
- You are now able to change the settings (as admin) ingame.
- Settings can now get saved into a file called 'RCsettings' so when you restart this filterscript, old settings will get restored
- You can (dis)allow people to shoot with the tank
- To prevent all players on your server will spawn a rc-car and you may exeed the 700-vehicles-limit.
So now if somebody spawns a rc-car, the server will count.
You (as admin) can set a limit. If this limit is reached, players won't be able to spawn more rc-cars.

Commands added:
/rcsettings
/rccredits
/rchelp

- You can now change settings ingame (no restart needed!!) by typic /rcsettings

Download links are in the begin-post
Reply
#8

I like this
Reply
#9

Quote:
Originally Posted by Sandra18[NL
]
Update 2.0:
Updates:
- You are now able to shoot with the tank (Tiger) Credits to Lethal ofcourse!
- You are now able to change the settings (as admin) ingame.
- Settings can now get saved into a file called 'RCsettings' so when you restart this filterscript, old settings will get restored
- You can (dis)allow people to shoot with the tank
- To prevent all players on your server will spawn a rc-car and you may exeed the 700-vehicles-limit.
So now if somebody spawns a rc-car, the server will count.
You (as admin) can set a limit. If this limit is reached, players won't be able to spawn more rc-cars.

Commands added:
/rcsettings
/rccredits
/rchelp

- You can now change settings ingame (no restart needed!!) by typic /rcsettings

Download links are in the begin-post
wow nice update keep good work
Reply
#10

Really good
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)