Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <ZCMD>
- #define COLOR_GREY 0xAFAFAFAA
- new masked[MAX_PLAYERS];
- CMD:mask(playerid,params[])
- {
- if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
- masked = !masked ? (1) : (2);
- SendClientMessage(playerid, -1, !masked ? ("You are now masked and your name is hidden.") : ("You are no longer masked and your name is visble.");
- for(new i,j = GetMaxPlayer();i<j;i++) ShowPlayerNameTagForPlayer(playerid, a, !masked ? ( false ) : (true) );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement