18.03.2009, 23:39
Ok I will make it for you, I'm feeling kind tonight xD
Should work
pawn Код:
if(!strcmp(cmdtext, "/leaders", true))
{
new str[128];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(i == leaderVariable && IsPlayerConnected(i)) //Check if i is equal to the leader variable for players, change to correct variable name
{
format(str, 128, "%s(&d)", pname, i);
} //If there are no leaders connected
format(str, 128, "There are no leaders connected!");
}
return SendClientMessage(playerid, COLOR_YELLOW, str);
}