Block Pandemonium (Minigames) - Do it Yourself -
Youarex - 03.07.2013
Block Pandemonium (Minigames)
This is probably the most useless include you can find. It's very simple one, giving you the tools to create minigames on a 'Block Pandemonium' base, whatever you can come up with
Example:
[ame]http://www.youtube.com/watch?v=gzRQiSBik1k[/ame]
Download:
block.inc - Pastebin
Callbacks
pawn Код:
/*
OnPlayerCaptureBlock:
Called when a player captures a block.
Parameters:
playerid - The player that captured the block.
blockid - The block that was captured.
Returns:
Doesn't return a specific value.
*/
public OnPlayerCaptureBlock(playerid, blockid)
{
return 1;
}
Functions
pawn Код:
/*
Arena_Create:
Creates the arena (132 objects).
Parameters:
Float:x - The X coordinate to create the arena at.
Float:y - The Y coordinate to create the arena at.
Float:z - The Z coordinate to create the arena at.
Returns:
Doesn't return a specific value.
*/
Arena_Create(Float:x, Float:y, Float:z);
/*
Arena_Destroy:
Destroys the arena.
Parameters:
No parameters.
Returns:
Doesn't return a specific value.
*/
Arena_Destroy();
pawn Код:
/*
SetBlockColor:
Changes the color of the block.
Parameters:
blockid - The block to change the color of.
color - The color to set, as an integer or hex (ARGB).
Returns:
Doesn't return a specific value.
*/
SetBlockColor(blockid, color);
/*
GetBlockColor:
Returns the color of the block.
Parameters:
blockid - The block you want to know the color of.
*/
GetBlockColor(blockid);
pawn Код:
/*
SetBlockUniqueID
Sets the unique ID to the block.
Parameters:
blockid - The block to change unique ID of (as an integer).
uniqueid - The unique ID to be set for the block.
Returns:
Doesn't return a specific value.
*/
SetBlockUniqueID(blockid, uniqueid);
/*
SetBlockUniqueID
Returns the unique ID of the block.
Parameters:
blockid - The block you want to know the unique ID of.
*/
GetBlockUniqueID(blockid);
Loops
pawn Код:
/*
blocks:
You can use this to loop through all blocks.
Variables:
Declare a new local variable. (E.g. 'i' or 'blockid')
*/
blocks(i)
{
}
Re: Block Pandemonium (Minigames) - Do it Yourself -
Stylock - 03.07.2013
I like minigames. Can you make a sample script?
Re: Block Pandemonium (Minigames) - Do it Yourself -
MP2 - 03.07.2013
I don't see its purpose tbh.
Re: Block Pandemonium (Minigames) - Do it Yourself -
Maxips2 - 03.07.2013
Nice, quite useless but I like it
Re: Block Pandemonium (Minigames) - Do it Yourself -
Youarex - 03.07.2013
Yes, it's pretty useless, unless you use some imagination
I will post some sample script later.
Example of usage:
Win by having the most blocks of your color when time runs out.
Another example:
Gain points by encircling areas with your color. Points are gathered when a cycle is formed.
Grabbing blue square on A3 will create a blue cycle.
AW: Block Pandemonium (Minigames) - Do it Yourself -
Mellnik - 03.07.2013
Could you please provide an option to simply use CreateDynamicObject instead of CreateObject?
For example #define BLOCK_STREAMER so it will compile with CreateDynamicObject
Edit: Also CreateDynamicPickup
Re: Block Pandemonium (Minigames) - Do it Yourself -
Youarex - 03.07.2013
I know, I should have added those options. I should have also added that this include is free of charge, free to view, free to use, modify and share in any way you want
Re: Block Pandemonium (Minigames) - Do it Yourself -
Youarex - 03.07.2013
Edit: Accidentally double posted due to lag or something...
Re: Block Pandemonium (Minigames) - Do it Yourself -
Niko_boy - 04.07.2013
This is nice