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