Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * GetVehiclePlate Include.
- • Created by BullseyeHawk.
- • Version 1.0
- • Copyrighted by BullseyeHawk @ sa-mp.com (C) 2013.
- • Enjoy, free license what so ever.
- Howto use - SetVehiclePlate:
- ! After using CreateVehicle() or CreateVehicleEx()
- ! Get vehicleid in anyway you'll want. I recommand using a define that equels to the CreateVehicle() or CreateVehicleEx() | Example: idgetter = CreateVehicle() / idgetter = CreateVehicleEx()
- * Import SetVehiclePlate(vehicleid, "PLATE"); / SetVehiclePlate(idgetter, "PLATE");
- * This should insert a string onto PlateText[vehicleid] / PlateText[idgetter] that can be getted trought GetVehiclePlate(vehicleid) / GetVehiclePlate(idgetter)
- Howto use - GetVehiclePlate:
- ! Get vehicleid in anyway you'll want.
- * Use GetVehiclePlate() with the define or anyway you want basicly.
- * It should return the VehiclePlate text in a string. ((array))
- */
- #include <a_samp>
- new PlateText[MAX_VEHICLES][10];
- forward SetVehiclePlate(vehicleid, platetext[]);
- public SetVehiclePlate(vehicleid, platetext[])
- {
- format(PlateText[vehicleid], 10, "%s", platetext);
- return SetVehicleNumberPlate(vehicleid, platetext);
- }
- stock GetVehiclePlate(vehicleid)
- {
- return PlateText[vehicleid];
- }
- native SetVehiclePlate(vehicleid, platetext[]);
- native GetVehiclePlate(vehicleid);
Advertisement
Add Comment
Please, Sign In to add comment