Advertisement
Guest User

Untitled

a guest
Mar 10th, 2012
3,602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. /*
  2. Mask Maded By Paul_Saint & VIPAwesome
  3. */
  4. #include <a_samp>
  5. #include <ZCMD>
  6. #define COLOR_GREY 0xAFAFAFAA
  7. new masked[MAX_PLAYERS];
  8. CMD:mask(playerid, params[])
  9. {
  10. if(IsPlayerAdmin(playerid)) {
  11. SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
  12. }
  13. if(masked[playerid] == 0)
  14. {
  15. masked[playerid] = 1;
  16. SendClientMessage(playerid, -1,"You are now masked and your name is hidden.");
  17. for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
  18. }
  19. else
  20. {
  21. masked[playerid] = 0;
  22. SendClientMessage(playerid, -1,"You are no longer masked and your name is visble.");
  23. for(new a = 0; a < MAX_PLAYERS; a++) ShowPlayerNameTagForPlayer(playerid, a, true);
  24. }
  25. return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement