Fitri_Fahim

:OOOOO

Jun 28th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7. #include <streamer>
  8.  
  9. #define Loop(%0,%1) for(new %0 = 0; %0 < %1; %0++)
  10.  
  11. #define MAX_BLOCK 1000
  12.  
  13.  
  14.  
  15.  
  16. public OnFilterScriptInit()
  17. {
  18. print("\n--------------------------------------");
  19. print(" Blank Filterscript by your name here");
  20. print("--------------------------------------\n");
  21. return 1;
  22. }
  23.  
  24.  
  25.  
  26. enum BInfo
  27. {
  28. Objects,
  29. OffX,
  30. OffY,
  31. OffZ,
  32. RotX,
  33. RotY,
  34. RotZ
  35. }
  36. new BlockInfo[MAX_BLOCK][BInfo];
  37.  
  38.  
  39.  
  40. CMD:cbb(playerid,params[])
  41. {
  42. new Float:x,Float:y,Float:z;
  43. GetPlayerPos(playerid,x,y,z);
  44. CreateDynamicBlock(x,y,z,1,1,1);
  45. return 1;
  46. }
  47.  
  48.  
  49.  
  50.  
  51. stock CreateDynamicBlock(Float:X,Float:Y,Float:Z, Float:rX, Float:rY, Float:rZ)
  52. {
  53. Loop(b, MAX_BLOCK)
  54. {
  55. X = BlockInfo[b][OffX];
  56. Y = BlockInfo[b][OffY];
  57. Z = BlockInfo[b][OffZ];
  58. rX = BlockInfo[b][RotX];
  59. rY = BlockInfo[b][RotX];
  60. rZ = BlockInfo[b][RotZ];
  61. new Obj = BlockInfo[b][Objects];
  62. CreateDynamicObject(1224, X, Y, Z, rY, rX, rZ);
  63. SetDynamicObjectMaterial(Obj, 0, 18646, "MatColours", "red", 0xFFFFFF10);
  64. }
  65. return 1;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment