12.09.2009, 12:12
Код:
V:/server/momo2.pwn(19470) : warning 217: loose indentation V:/server/momo2.pwn(19477) : warning 217: loose indentation V:/server/momo2.pwn(19478) : warning 217: loose indentation V:/server/momo2.pwn(19486) : warning 217: loose indentation V:/server/momo2.pwn(19488) : warning 217: loose indentation V:/server/momo2.pwn(19495) : warning 217: loose indentation V:/server/momo2.pwn(19496) : warning 217: loose indentation V:/server/momo2.pwn(19504) : warning 217: loose indentation V:/server/momo2.pwn(19507) : warning 217: loose indentation
Код:
if (strcmp(cmd,"/aduty",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s ********.", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid,COLOR_YELLOW);
}
else
{
SendClientMessage(playerid, COLOR_RED, "***********!");
}
}
return 1;
}
if (strcmp(cmd,"/adutyoff",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s is duty off", sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid,COLOR_WHITE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You are not admin.");
}
}
return 1;
}

