Advertisement
Guest User

Untitled

a guest
May 5th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.58 KB | None | 0 0
  1. #include <a_samp>
  2. #include <ZCMD>
  3. #define COLOR_GREY 0xAFAFAFAA
  4. new masked[MAX_PLAYERS];
  5.  
  6. CMD:mask(playerid,params[])
  7. {
  8.         if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
  9.         masked = !masked  ? (1) : (2);
  10.         SendClientMessage(playerid, -1, !masked ? ("You are now masked and your name is hidden.") : ("You are no longer masked and your name is visble.");
  11.         for(new i,j = GetMaxPlayer();i<j;i++)  ShowPlayerNameTagForPlayer(playerid, a, !masked ? ( false ) : (true) );
  12.         return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement