[Include] mBoxes - Simple Info boxes showing by one function. ( TEXTDRAW )
#1

So, another Include I made when I was srsly bored.

Now, it's an infobox system.
To use it, do this:
Extract mBoxes.inc into your pawno\include folder
Add this at top of your script:
pawn Код:
#include < mBoxes >
And add this to OnPlayerKeyStateChange:
pawn Код:
InfoBoxKeyStateChange( playerid, newkeys, oldkeys );
So it should look like:
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
    InfoBoxKeyStateChange( playerid, newkeys, oldkeys );
    // Your other code...
    return 1;
}
Now to use mBoxes, simply use:
pawn Код:
ShowInfoBox( playerid, text[ ] )
Example usage:
pawn Код:
ShowInfoBox( playerid, "This is a sample infobox. " );
It will automatically add "Use Fire button to close" thingy at bottom of your textdraw, and you just need to use your Fire Button to close the box.

Screenshot:


Click me to download!


EDIT: Also credits to Zamaroht for his TextDraw editor.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)