Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Example PAWN v.s. SBSSL
- // PAWN
- // CreateBObject is a native from my plugin
- CreateBObject(3055, -1534.80, 690.00, 45.70, 0.00, 0.00, 316.50);
- CreateBObject(16088, -1537.20, 693.00, 43.90, 0.00, 0.00, 46.50);
- CreateBObject(16088, -1525.70, 682.10, 43.90, 0.00, 0.00, 46.50);
- CreateBObject(3055, -1540.40, 695.30, 45.70, 0.00, 0.00, 316.50);
- CreateBObject(3055, -1534.80, 690.00, 50.70, 0.00, 0.00, 316.50);
- ## SBSSL
- object 3055 -1534.80 690.00 45.70 0.00 0.00 316.50 end
- object 16088 -1537.20 693.00 43.90 0.00 0.00 46.50 end
- object 16088 -1525.70 682.10 43.90 0.00 0.00 46.50 end
- object 3055 -1540.40 695.30 45.70 0.00 0.00 316.50 end
- object 3055 -1534.80 690.00 50.70 0.00 0.00 316.50 end
- // If we're going to attach an object in PAWN, retexture it, etc...
- new someobject = CreateBObject(3055, -1534.80, 690.00, 45.70, 0.00, 0.00, 316.50);
- new someobject2 = CreateBObject(16088, -1537.20, 693.00, 43.90, 0.00, 0.00, 46.50);
- AttachBObjectToBobject(someobject, someobject2);
- SetBObjectMaterial(someobject2, 0, 3055, "...", "..."); // Can be invalid, because I am using some random arguments...
- // attached
- ## SBSSL
- object 3055 -1534.80 690.00 45.70 0.00 0.00 316.50
- attach object 16088 0.0 0.5 0.0 0.00 0.00 46.50
- mod material 0 3055 "..." "..." end
- end
- // If we're going to call an event from PAWN
- CallRemoteFunction("OMGVehicleCreate", "d", CreateBVehicle(487, -2123.6050, -133.2747, 36.6994, 357.7946));
- forward OMGVehicleCreate(vehicle_id)
- public OMGVehicleCreate(vehicle_id)
- {
- //...
- }
- ## SBSSL
- vehicle 487 -2123.6050 -133.2747 36.6994 357.7946
- call_event create "OMGVehicleCreate" end
- //Scripter's use of event callbacks defined from SBSSL
- BS_CREATE:OMGVehicleCreate(vehicle_id)
- {
- //...
- }
- ## Additional stuff from SBSSL
- rules
- author "Some author"
- map_name "some map"
- date "some date"
- description "some map description"
- limit_stream_objects 200
- limit_stream_map_icons 20
- set_tick_rate default
- end
- // Can you define map file header in PAWN? I guess after lots of coding you can store and print data from arrays etc.
Advertisement
Add Comment
Please, Sign In to add comment