24.11.2012, 07:45
PHP код:
CMD:factions(playerid, params[])
{
new string[128], idx;
while (idx < sizeof(FacInfo))
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
{
format(string, sizeof(string), "Los Santos Police Department | Leader: %s | Members: %d",FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
format(string, sizeof(string), "San Andreas Government | Leader: %s | Members: %d", FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
format(string, sizeof(string), "The Hitman Agency | Leader: %s | Members: %d", FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
format(string, sizeof(string), "San Andreas News | Leader: %s | Members: %d", FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
format(string, sizeof(string), "Los Santos Fire and Medic Department | Leader: %s | Members: %d", FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
format(string, sizeof(string), "Federal Bureau of Investigation | Leader: %s | Members: %d", FacInfo[idx][FacLeader], FacInfo[idx][facMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}
PHP код:
CMD:factions(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
{
format(string, sizeof(string), "Los Santos Police Department | Leader: %s | Members: %d",FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
format(string, sizeof(string), "San Andreas Government | Leader: %s | Members: %d", FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
format(string, sizeof(string), "The Hitman Agency | Leader: %s | Members: %d", FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
format(string, sizeof(string), "San Andreas News | Leader: %s | Members: %d", FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
format(string, sizeof(string), "Los Santos Fire and Medic Department | Leader: %s | Members: %d", FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
format(string, sizeof(string), "Federal Bureau of Investigation | Leader: %s | Members: %d", FacInfo[playerid][FacLeader], FacInfo[playerid][facMembers]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}