08.08.2012, 23:15
When I type in /b, or /d or any other channel on the server it just tells me the command and how to use it, for example if I type "/b Hey!" it would appear as "/B [OOC CHAT]" in the chat box.
Here's the script..
Here's the script..
pawn Код:
CMD:b(playerid, text[])
{
if(PlayerMuteInfo[playerid][AllMuted])
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " You can't speak, you have been silenced from all chats!");
return 1;
}
new result[81];
if(!sscanf(text, "s[81]", result))
{
new string3[128];
if(AdminDuty[playerid])
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
format(string3, sizeof(string3), "<Mod>%s%s says: (( %s ))", Accent[playerid], PlayerNameEx(playerid), result);
}
else
{
format(string3, sizeof(string3), "<%d Admin>%s%s says: (( %s ))", PlayerInfo[playerid][pAdmin], Accent[playerid], PlayerNameEx(playerid), result);
}
}
else
{
format(string3, sizeof(string3), "%s%s says: (( %s ))", Accent[playerid], PlayerNameEx(playerid), result);
}
ProxDetector(20.0, playerid, string3,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string3);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /B [OOC chat]");
}
return 1;
}