02.09.2014, 06:48
pawn Код:
CMD:helpers(playerid,params[])
{
new count = 0;
new string[128];
new name1[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_TEAL, "--------------------------------Helpers Online---------------------------");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i,name1,MAX_PLAYER_NAME);
if(playerVariables[i][pHelper] >= 1)
{
format(string, 128, "%s", GetName(i));
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
if (count == 0)
SendClientMessage(playerid,COLOR_GREY,"There are no Helpers Online at the moment");
SendClientMessage(playerid, COLOR_TEAL, "-------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE,"-====-=-=-=--------- /n.");
SendClientMessage(playerid, COLOR_TEAL, "-------------------------------------------------------------------------------");
return 1;
}