24.08.2012, 18:46
Hello again, i want to make so when you are Masked and on phone your name is ''Anonymous'' insted of your real ingame name. here is /maskon..
Код:
if(strcmp(cmd, "/maskon", true) == 0) // by CuervO_NegrO { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMask] == 0) { SendClientMessage(playerid, COLOR_GRAD1, "** You don't have a mask"); return 1; } if(PlayerInfo[playerid][pLevel] < 5) { SendClientMessage(playerid, COLOR_GRAD1, "** You are not able to use it."); return 1; } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { ShowPlayerNameTagForPlayer(i, playerid, 0); } } PlayerInfo[playerid][pMaskuse] = 1; SendClientMessage(playerid, COLOR_WHITE, "** You have put your mask on [/maskoff to put it away]."); format(string, sizeof(string), "* %s puts a mask on.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /maskon",d,m,y,h,mi,s,sendername); CommandLog(string); } return 1; }