Advertisement
Guest User

Made by Vinz

a guest
Feb 1st, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. #include <ZCMD>
  2. #include <a_samp>
  3. #include <sscanf2>
  4. #include <foreach>
  5. #include <YSI\y_timers>
  6.  
  7. // strcpy - Simon / Y_LESS
  8. #define strcpy(%0,%1,%2) \
  9. strcat((%0[0] = '\0', %0), %1, %2)
  10.  
  11. new FALSE = false;
  12. #define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessageEx(%0,%1,_str);}while(FALSE)
  13.  
  14. enum pInfo
  15. {
  16. pAdmin,
  17.  
  18. };
  19.  
  20. #define DIALOG_RULES 1
  21.  
  22. stock ABroadCast(color,string[],level)
  23. {
  24. foreach(Player, i)
  25. {
  26. if (PlayerInfo[i][pAdmin] >= 2)
  27. {
  28. SendClientMessageEx(i, color, string);
  29. //printf("%s", string);
  30. }
  31. }
  32. return 1;
  33. }
  34.  
  35. CMD:showrules(playerid, params[])
  36. {
  37. new giveplayerid, string[128];
  38. if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /showrules [playerid]");
  39. 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", "");
  40. format(string, sizeof(string), " %s has shown rules to %s", GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
  41. ABroadCast(COLOR_BLUE, string, 2);
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement