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