Showrules to Rulebreakers ! -
vinzcastmich - 01.02.2014
Hello , this is my First Filterscript.
This FS can be used to show a person rules if they break it
and they shown as dialogs.
and this is to be used to be put in a gamemode

cause i dont really understand how to make it filterscript
but i take this from my gamemode
Sorry if there is errors , just comment and i will fix it
http://pastebin.com/BDeqiKqU
Sorry for bad command or not usefull.. Im just trying to share it thats all
Re: Showrules to Rulebreakers ! -
TahaAsif12 - 01.02.2014
You haven't created enums for PlayerInfo.
You can use this:
Код:
#include <ZCMD>
#include <a_samp>
#include <sscanf2>
#define DIALOG_RULES 1
CMD:showrules(playerid, params[])
{
new giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /showrules [playerid]");
ShowPlayerDialog(giveplayerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Rules", "-Always roleplay\n-Do not do metagaming\n-do not kill on sight(KOS)\n-no revenge-killing(RK)\n-No powergaming\n-No driver drive-by(DDB)\n- car-ramming or car parking is a no\n-Do not advertise other server\n-no insult OOCly\n-etc", "Ok","");
return 1;
}
Re: Showrules to Rulebreakers ! -
KingServerIRAN - 01.02.2014
Plz Upload to
solidfiles
Re: Showrules to Rulebreakers ! -
vinzcastmich - 01.02.2014
Quote:
Originally Posted by TahaAsif12
You haven't created enums for PlayerInfo.
You can use this:
Код:
#include <ZCMD>
#include <a_samp>
#include <sscanf2>
#define DIALOG_RULES 1
CMD:showrules(playerid, params[])
{
new giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /showrules [playerid]");
ShowPlayerDialog(giveplayerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Rules", "-Always roleplay\n-Do not do metagaming\n-do not kill on sight(KOS)\n-no revenge-killing(RK)\n-No powergaming\n-No driver drive-by(DDB)\n- car-ramming or car parking is a no\n-Do not advertise other server\n-no insult OOCly\n-etc", "Ok","");
return 1;
}
|
Ah sorry , updated the link with new enums and include foreach
Re: Showrules to Rulebreakers ! -
TahaAsif12 - 01.02.2014
Quote:
Originally Posted by vinzcastmich
Ah sorry , updated the link with new enums and include foreach
|
Now its good! Also do the same with ur other FS.+rep
Re: Showrules to Rulebreakers ! -
vinzcastmich - 01.02.2014
Quote:
Originally Posted by KingServerIRAN
|
I cannot
i cannot convert My script into a filterscript. somehow it gets many many errors.
but if the one link on top you include it in your GM , it works fine
Re: Showrules to Rulebreakers ! -
vinzcastmich - 01.02.2014
Quote:
Originally Posted by TahaAsif12
Now its good! Also do the same with ur other FS.+rep
|
Thank you
And i update the link so it gets new defines to make it perfect
Re: Showrules to Rulebreakers ! -
mahardika - 05.02.2014
you havent create PlayerInfo, you only create the enums?