[FilterScript] Showrules to Rulebreakers !
#1

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
Reply
#2

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;
}
Reply
#3

Plz Upload to solidfiles
Reply
#4

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
Reply
#5

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
Reply
#6

Quote:
Originally Posted by KingServerIRAN
Посмотреть сообщение
Plz Upload to solidfiles
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
Reply
#7

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
Reply
#8

you havent create PlayerInfo, you only create the enums?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)