PHP код:
CMD:contratos(playerid)
{
new count = 0, iname[MAX_PLAYER_NAME], string[128];
if(Hitman[playerid] == 0)
return SendClientMessage(playerid, -1, "Vocк nгo й um Hitman/Assassins.");
for(new i; i < MAX_PLAYERS; i++)
{
if(Contratado[i] == 1 && IsPlayerConnected(i))
{
GetPlayerName(i, iname, MAX_PLAYER_NAME);
count++;
SendClientMessage(playerid, -1, "Contratos abertos:");
format(string, sizeof(string), "%s[%d]", iname, i);
SendClientMessage(playerid, -1, string);
}
}
if(count == 0)
return SendClientMessage(playerid, -1, "Nгo hб contratados online.");
return 1;
}
Nгo testei.