24.03.2014, 07:38
How to do i put an BigEar here?
What is an BigEar? Basically BigEar is an if you are too far from players you can still hear it.. but if you disable it only the "near" person can hear what players saying.
At this code how do i put/format a bigears here:
Some BigEars Variables and Formats:
THANK YOU VERY MUCH!
I will rep you if you will help me :P
What is an BigEar? Basically BigEar is an if you are too far from players you can still hear it.. but if you disable it only the "near" person can hear what players saying.
At this code how do i put/format a bigears here:
Код:
sendername = GetPlayerNameEx(playerid); switch(PlayerInfo[playerid][pAccent]) { case 0, 1: { if(AdminDuty[playerid] == 1) { format(string, sizeof(string), "%s says: (( %s )) ", sendername, text); } else { format(string, sizeof(string), "%s says: %s", sendername, text); } ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000); }
Код:
new BigEar[MAX_PLAYERS];
Код:
CMD:bigears(playerid, params[]) { if( PlayerInfo[playerid][pAdmin] >= 3) { if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); if (!BigEar[playerid]) { BigEar[playerid] = 1; SendClientMessageEx(playerid, COLOR_GRAD2, "Your ears have grown to gargantuan proportions!"); } else if (BigEar[playerid]) { (BigEar[playerid] = 0); SendClientMessageEx(playerid, COLOR_GRAD2, "Your ears have shrunk."); } } return 1; }
I will rep you if you will help me :P