13.07.2016, 20:29
PHP код:
CMD:b(playerid,params[])
{
if(isnull(params))
return SendClientMessage(playerid, -1, ""chat" /b [OOC chat]");
new string[128];
if(pInfo[playerid][pAdminDuty] == 1)
{
format(string, sizeof(string), "((Administrator %s spune: %s ))", PlayerName(playerid), params);
ProxDetector(20.0, playerid, string, COLOR_LIGHTBLUE);
return 1;
}
if(pInfo[playerid][pHelperDuty] == 1)
{
format(string, sizeof(string), "((Helper %s spune: %s ))", PlayerName(playerid), params);
ProxDetector(20.0, playerid, string, COLOR_LIGHTBLUE);
return 1;
}
if(pInfo[playerid][IsPlayerMuted] == 1)
{
SendClientMessage(playerid,-1,"*"COL_RED" Nu poti vorbi cat timp ai mute ! ");
}
format(string, sizeof(string), "(( %s spune: %s ))", PlayerName(playerid), params);
ProxDetector(20.0, playerid, string, COLOR_WHITE);
return 1;
}