17.01.2013, 11:49
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:
************************************************** *****
Example scripts:
*********************************
Credits:
<sscanf2> - For the example script.
<iPleoMax> - For his awesome textdraw editor.
************************************
Downloads and must-do.:
Please write the line:
underneath your:
function!!!
Make sure to do this, otherwise it won't work.
***************
rules.inc attached.
************************************************** *****
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();
pawn Code:
public OnFilterScriptInit()
Make sure to do this, otherwise it won't work.
***************
rules.inc attached.