21.09.2013, 10:20
Hello.
Today i decided to create a Car License System.
What i want to do?
When player enters any car without license, will be ejected.
When player enters a Drive test car, he's have to do test.
And Save system, i will try to make it, i hope some help
Lets try..
What's next. what i did wrong?
Waiting for your help .
Today i decided to create a Car License System.
What i want to do?
When player enters any car without license, will be ejected.
When player enters a Drive test car, he's have to do test.
And Save system, i will try to make it, i hope some help
Lets try..
Код:
#include <a_samp>
#include <YSI/y_ini>
new examCar1;
new examCar2;
new examCar3;
new examCar4;
new examCar5;
public OnFilterScriptInit()
//Exam Cars
examCar1 = AddStaticVehicle(405,2052.531494,-1903.692016,13.243583,1,1,15);
examCar2 = AddStaticVehicle(405,2055.949951,-1903.704101,13.243331,1,1,15);
examCar3 = AddStaticVehicle(405,2059.206787,-1903.883056,13.243336,1,1,15);
examCar4 = AddStaticVehicle(405,2062.361328,-1903.624877,13.243142,1,1,15);
examCar5 = AddStaticVehicle(405,2065.629150,-1903.980712,13.243326,1,1,15);
//Information Pickup "i will change x y z, its an example"
pickup = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
//When player enter car without lincese.. WARN ME IF I USE WRONG FUNCTION..
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
//" CHECK IF PLAYER HAS LICENSE"
RemovePlayerFromVehicle(playerid);
return 1;
}
Waiting for your help .


