Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #define Loop(%0,%1) for(new %0 = 0; %0 < %1; %0++)
- #define MAX_BLOCK 1000
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- enum BInfo
- {
- Objects,
- OffX,
- OffY,
- OffZ,
- RotX,
- RotY,
- RotZ
- }
- new BlockInfo[MAX_BLOCK][BInfo];
- CMD:cbb(playerid,params[])
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- CreateDynamicBlock(x,y,z,1,1,1);
- return 1;
- }
- stock CreateDynamicBlock(Float:X,Float:Y,Float:Z, Float:rX, Float:rY, Float:rZ)
- {
- Loop(b, MAX_BLOCK)
- {
- X = BlockInfo[b][OffX];
- Y = BlockInfo[b][OffY];
- Z = BlockInfo[b][OffZ];
- rX = BlockInfo[b][RotX];
- rY = BlockInfo[b][RotX];
- rZ = BlockInfo[b][RotZ];
- new Obj = BlockInfo[b][Objects];
- CreateDynamicObject(1224, X, Y, Z, rY, rX, rZ);
- SetDynamicObjectMaterial(Obj, 0, 18646, "MatColours", "red", 0xFFFFFF10);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment