Guest User

/giverules [playerid]

a guest
May 22nd, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.32 KB | None | 0 0
  1. CMD:giverules(playerid, params[])
  2. {
  3.     if(IsPlayerAdmin(playerid))
  4.     {
  5.         new targetid;
  6.         if(sscanf(params, "i", targetid))
  7.         {
  8.             if(IsPlayerConnected(targetid))
  9.             {
  10.                 new string[952];
  11.                 strcat(string, "xTreme Missions Rules:\n\n");
  12.                 strcat(string, "{020AFD}Cheating, Hacking, Mods[which give you an advantages ovwe other player and bug abusing -                        {FE0004}Not allowed\n");
  13.                 strcat(string, "{020AFD}Swearing, Insulting, Spamming And Flooding - {FE0004}Not allowed\n");
  14.                 strcat(string, "{020AFD}Spawn Killing, Team Jacking and Team Killing - {FE0004}Not allowed\n");
  15.                 strcat(string, "{020AFD}Parking vehicles to block a path[uniess you directly spawned it into a well] - {0AA61C}Allowed\n");
  16.                 strcat(string, "{020AFD}{020AFD}Prumium abuse[healing in a fight/fixing you vehicle car while getting shot at and etc] - {FE0004}Not Allowed");
  17.                 strcat(string, "\n\n");
  18.                 strcat(string, "{FE0004}Respect Our Scripter: RedRex ");
  19.                 ShowPlayerDialog(targetid, 44, DIALOG_STYLE_MSGBOX, "Rules", string, "Accept", "");
  20.             }
  21.             else
  22.             {
  23.                 SendClientMessage(playerid, -1, "Invalid Player.");
  24.             }
  25.         }
  26.         else
  27.         {
  28.             SendClientMessage(playerid, -1, "USAGE: /givesrules [playerid]");
  29.         }
  30.     }
  31.     else
  32.     {
  33.         SendClientMessage(playerid, -1, "You must be logged in as a RCON Administrator.");
  34.     }
  35.     return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment