22.12.2013, 08:59
heres my OnPlayerText script
I've changed the ''return 1'' into ''return 0'' as it was told above.
Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '*' && PInfo[playerid][Admin] >= 1)
{
new str[256]; GetPlayerName(playerid,str,sizeof(str));
format(str,sizeof(str),"Admin Chat: {B4B5B7}%s: %s",str,text[1]);
AdminPrivateChat(COLOR_RED,str);
SaveLogs("AdminChat",str);
return 0;
}
if(text[0] == '@' && PInfo[playerid][VIP] == 1)
{
new str[256]; GetPlayerName(playerid,str,sizeof(str));
format(str,sizeof(str),"VIP Chat: {B4B5B7}%s: %s",str,text[1]);
VIPPrivateChat(COLOR_YELLOW,str);
SaveLogs("VIPChat",str);
return 0;
}
if(PInfo[playerid][pMute] == 1) {
SendClientMessage(playerid, COLOR_RED, "You are muted, no one can hear you!");
return 0; }
return 0;
}

