21.05.2017, 09:36
I've tried to understand why it's not working properly,
The issue is that when you put /mask on, Your friend's name dissappear instead of your name, Can anyone help me
to fix both of the commands?, Thanks.
The issue is that when you put /mask on, Your friend's name dissappear instead of your name, Can anyone help me
to fix both of the commands?, Thanks.
Код:
CMD:mask(playerid, params[]) { if(masked[playerid] == 0) masked[playerid] = 1; SendClientMessage(playerid, -1,"You put on your head your mask,use /hidemask, to hide it((Now noone know who are you))"); for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false); return 1; } CMD:hidemask(playerid, params[]) { masked[playerid] = 0; SendClientMessage(playerid, -1,"You hided your mask((Now people know you are you))"); for(new a = 0; a < MAX_PLAYERS; a++) ShowPlayerNameTagForPlayer(playerid, a, true); return 1; }