29.01.2015, 14:52
O - Optimization
All new:
OnPlayerConnect:
All new:
Код HTML:
Mask[MAX_PLAYERS];
Код HTML:
Mask[playerid] = 0;
Код HTML:
CMD:mask(playerid,params[]) { if(Mask[playerid] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(i, playerid, 1); } SendClientMessage(playerid, -1, "You put a mask write / mask to remove"); GameTextForPlayer(playerid,"~g~Mask On",1000,1); Mask[playerid] = 1; } else { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(i, playerid, 1); } SendClientMessage(playerid, -1, "You have removed the mask, type / masks to wear"); GameTextForPlayer(playerid,"~g~Mask Off",1000,1); Mask[playerid] = 0; } return 1; }