BigETI

Some comparison...

Mar 23rd, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. Example PAWN v.s. SBSSL
  2.  
  3. // PAWN
  4. // CreateBObject is a native from my plugin
  5. CreateBObject(3055, -1534.80, 690.00, 45.70, 0.00, 0.00, 316.50);
  6. CreateBObject(16088, -1537.20, 693.00, 43.90, 0.00, 0.00, 46.50);
  7. CreateBObject(16088, -1525.70, 682.10, 43.90, 0.00, 0.00, 46.50);
  8. CreateBObject(3055, -1540.40, 695.30, 45.70, 0.00, 0.00, 316.50);
  9. CreateBObject(3055, -1534.80, 690.00, 50.70, 0.00, 0.00, 316.50);
  10.  
  11. ## SBSSL
  12. object 3055 -1534.80 690.00 45.70 0.00 0.00 316.50 end
  13. object 16088 -1537.20 693.00 43.90 0.00 0.00 46.50 end
  14. object 16088 -1525.70 682.10 43.90 0.00 0.00 46.50 end
  15. object 3055 -1540.40 695.30 45.70 0.00 0.00 316.50 end
  16. object 3055 -1534.80 690.00 50.70 0.00 0.00 316.50 end
  17.  
  18.  
  19. // If we're going to attach an object in PAWN, retexture it, etc...
  20. new someobject = CreateBObject(3055, -1534.80, 690.00, 45.70, 0.00, 0.00, 316.50);
  21. new someobject2 = CreateBObject(16088, -1537.20, 693.00, 43.90, 0.00, 0.00, 46.50);
  22. AttachBObjectToBobject(someobject, someobject2);
  23. SetBObjectMaterial(someobject2, 0, 3055, "...", "..."); // Can be invalid, because I am using some random arguments...
  24. // attached
  25.  
  26. ## SBSSL
  27. object 3055 -1534.80 690.00 45.70 0.00 0.00 316.50
  28. attach object 16088 0.0 0.5 0.0 0.00 0.00 46.50
  29. mod material 0 3055 "..." "..." end
  30. end
  31.  
  32.  
  33. // If we're going to call an event from PAWN
  34. CallRemoteFunction("OMGVehicleCreate", "d", CreateBVehicle(487, -2123.6050, -133.2747, 36.6994, 357.7946));
  35. forward OMGVehicleCreate(vehicle_id)
  36. public OMGVehicleCreate(vehicle_id)
  37. {
  38. //...
  39. }
  40.  
  41. ## SBSSL
  42. vehicle 487 -2123.6050 -133.2747 36.6994 357.7946
  43. call_event create "OMGVehicleCreate" end
  44.  
  45. //Scripter's use of event callbacks defined from SBSSL
  46. BS_CREATE:OMGVehicleCreate(vehicle_id)
  47. {
  48. //...
  49. }
  50.  
  51.  
  52. ## Additional stuff from SBSSL
  53. rules
  54. author "Some author"
  55. map_name "some map"
  56. date "some date"
  57. description "some map description"
  58. limit_stream_objects 200
  59. limit_stream_map_icons 20
  60. set_tick_rate default
  61. end
  62.  
  63. // 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