Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ZCMD>
- #include <a_samp>
- #include <sscanf2>
- #include <foreach>
- #include <YSI\y_timers>
- // strcpy - Simon / Y_LESS
- #define strcpy(%0,%1,%2) \
- strcat((%0[0] = '\0', %0), %1, %2)
- new FALSE = false;
- #define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessageEx(%0,%1,_str);}while(FALSE)
- enum pInfo
- {
- pAdmin,
- };
- #define DIALOG_RULES 1
- stock ABroadCast(color,string[],level)
- {
- foreach(Player, i)
- {
- if (PlayerInfo[i][pAdmin] >= 2)
- {
- SendClientMessageEx(i, color, string);
- //printf("%s", string);
- }
- }
- return 1;
- }
- CMD:showrules(playerid, params[])
- {
- new giveplayerid, string[128];
- 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", "close", "");
- format(string, sizeof(string), " %s has shown rules to %s", GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_BLUE, string, 2);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement