[Include] rules.inc. Make your server rules with one simple line!!!
#1

Hello. In most of the servers around, I have seen sucky, too-bright and horrible looking rules, so I made this. It's a quickie. Any suggestions/positive criticism will be surely accepted. Very simple.
************************************************** *****
Screenshot:

************************************************** *****
Functions:
pawn Code:
native ShowRulesForPlayer(playerid, rule1, rule2 (optional), rule3 (optional), rule4 (optional), rule5 (optional),  rule6 (optional));
native HideRulesForPlayer(playerid);
************************************************** *****
Example scripts:
pawn Code:
#define FILTERSCRIPT

#include <a_samp>
#include <rules>
#include <zcmd>
new rules[MAX_PLAYERS]=0;


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    Rules();
    return 1;
}


public OnFilterScriptExit()
{
    return 1;
}

CMD:rules(playerid)
{
ShowRulesForPlayer(playerid, "Hello!");
rules[playerid]=1;
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(rules[playerid]==1)
    {
        if(newkeys & KEY_FIRE)
        {
        HideRulesForPlayer(playerid);
        SendClientMessage(playerid,COLOR_RED,"Cancelled selection.");
        }
    }
    return 1;
}
*********************************
Credits:
<sscanf2> - For the example script.
<iPleoMax> - For his awesome textdraw editor.
************************************
Downloads and must-do.:
Please write the line:
pawn Code:
Rules();
underneath your:
pawn Code:
public OnFilterScriptInit()
function!!!
Make sure to do this, otherwise it won't work.

***************
rules.inc attached.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)