13.07.2016, 20:21
Код:
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;
}
I have a clue that i have too many return 1's. But not sure.
But everything looks good aligned.

