26.09.2011, 12:56
pawn Код:
if (strcmp(cmdtext, "/events", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new count=0;
SendClientMessage(playerid, COLOR_GREEN, "Events admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pEventadmin] >= 1)
{
count++;
new sendername[MAX_PLAYER_NAME];
GetPlayerName(i, sendername, sizeof(sendername));
Message(playerid, COLOR_GREEN, string);
}
}
}
if(count==0)
return SendClientMessage(playerid, COLOR_YELLOW, "*** Server Info *** : No events admins ONLINE");
SendClientMessage(playerid, COLOR_GREEN, "______________");
}
return 1;
}