Posts: 621
Threads: 174
Joined: Nov 2013
This to:
If im on BigEar any player type i can hear. even if im far to him.
Код:
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);
}
Some BigEar variables
Код:
new BigEar[MAX_PLAYERS];
Thank you very much!
Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by Abagail
pawn Код:
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); foreach(Player, i) { if(BigEars[i] == playerid) { format(string, sizeof(string), "BIGEARS: %s says: %s", sendername, text); SendClientMessage(i, -1, string); } } }
|
Код:
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48334) : warning 217: loose indentation
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : error 017: undefined symbol "BigEars"
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : warning 215: expression has no effect
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : error 001: expected token: ";", but found "]"
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : error 029: invalid expression, assumed zero
C:\Users\Cris\Desktop\0.3z Server\ASRP \gamemodes\ASRP_V2.0.pwn(48349) : fatal error 107: too many error messages on one line
Код:
Line 48334: switch(PlayerInfo[playerid][pAccent])
48349: if(BigEars[i] == 1)
EDIT: i change the If(BigEars[i] == playerid) to If(BigEars[i] == 1)
Posts: 621
Threads: 174
Joined: Nov 2013
@Abagail
Are you still there?
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
What is BigEar's set to? Is it set to a certain playerid? True/false?
Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by Abagail
What is BigEar's set to? Is it set to a certain playerid? True/false?
|
For example
I toggle my /bigears
It will set to 1
and if not it will set to 0
Posts: 621
Threads: 174
Joined: Nov 2013
Posts: 621
Threads: 174
Joined: Nov 2013
Posts: 621
Threads: 174
Joined: Nov 2013
Posts: 621
Threads: 174
Joined: Nov 2013