Advertisement
MichaelFR

CMD Blockpm

Dec 24th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. //New
  2. new PMBlokiran[MAX_PLAYERS];
  3.  
  4. /////ONPlayerConn
  5. PMBlokiran{playerid} = 0;
  6. //CMD
  7. CMD:blockpm (playerid, params[])
  8. {
  9.   if(Pl[playerid][pAdmin] < 1337 && Pl[playerid][pDonator] < 1) return SendClientMessage(playerid,-1,"CHDM | Niste Ovlasteni!");
  10.   if (!PMBlokiran{playerid})
  11.   {
  12.   PMBlokiran{playerid} = 1;
  13.   SendClientMessage(playerid, -1, "CHDM | Blokirali ste primanje PMa!");
  14.  }
  15.  else if (PMBlokiran{playerid})
  16.  {
  17.  PMBlokiran{playerid} = 0;
  18.  SendClientMessage(playerid, -1, "CHDM | Ukljucili ste primanje PMa!");
  19.  }
  20.  return 1;
  21. }
  22. ////Dodaj ovo na cmd /pm.. i donator sistem stavi enum i spremanje ako nema vec..
  23. if(PMBlokiran{dodaj} > 0) return SendClientMessage (playerid, -1,"CHDM | Ova osoba je trenutno blokirala primanje privatnih poruka!!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement