21.03.2011, 18:23
(
Последний раз редактировалось Sascha; 07.05.2016 в 09:45.
)
Hi guys!
The "Sgt's Driving License" is a filterscript made for scripters and server owners. It might be usefull for roleplay and reallife servers, however can be used by everyone.
I have no clue whether you need it or not, however I've been asked to create such a script for someone and thought why not make another version for everyone.
When you are using this filterscript there will appear an "information" icon in the SF Driving School interior. If you enter the icon and don't have a driving license yet, you can start your driving test.
After entering a checkpoint a car will appear, in which you have to do the test.
Checkpoints will lead you through SF and finally back to the driving school.
If you have less than or exactly 2 percent damage of the health that your car had when you entered it, you've passed the test and will get your driving license.
When entering a vehicle without a driving license, you will be removed automatically and a message will appear.
(There is no license needed for bicycles, scooters and airplanes)
To make the script available for all kinds of servers (whether no db, file db or mysql db) I created a new folder where the files will be saved independently of the userfiles (please remember to copy the folder in the scripfiles directory, too).
As I don't know how you would like it, I didn't add any money amount for the license, however you can easily add it on your own:
P.S.: This is my first released script, so I hope you like it
Change Log:
v0.6: First released version
v0.7: Major bug fixes of 0.7 (==> damage calculation)
The "Sgt's Driving License" is a filterscript made for scripters and server owners. It might be usefull for roleplay and reallife servers, however can be used by everyone.
I have no clue whether you need it or not, however I've been asked to create such a script for someone and thought why not make another version for everyone.
When you are using this filterscript there will appear an "information" icon in the SF Driving School interior. If you enter the icon and don't have a driving license yet, you can start your driving test.
After entering a checkpoint a car will appear, in which you have to do the test.
Checkpoints will lead you through SF and finally back to the driving school.
If you have less than or exactly 2 percent damage of the health that your car had when you entered it, you've passed the test and will get your driving license.
When entering a vehicle without a driving license, you will be removed automatically and a message will appear.
(There is no license needed for bicycles, scooters and airplanes)
To make the script available for all kinds of servers (whether no db, file db or mysql db) I created a new folder where the files will be saved independently of the userfiles (please remember to copy the folder in the scripfiles directory, too).
As I don't know how you would like it, I didn't add any money amount for the license, however you can easily add it on your own:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 137)
{
if(response)
{
PlayerData[playerid][Step] = 1;
SendClientMessage(playerid, COLOR_GREY, "Walk out onto the car park and go into the checkpoint.");
SetPlayerCheckpoint(playerid, -2028.2227,-91.8504,33.3203, 2.00);
new x = 123456789 //this and the next line are not in the script. Paste it if you want the license to cost some money (change the x to the amount you wish
GivePlayerMoney(playerid, -x);
}
}
return 1;
}
Change Log:
v0.6: First released version
v0.7: Major bug fixes of 0.7 (==> damage calculation)