09.06.2010, 17:46
Код:
if(strcmp(cmd, "/propiedades", true) == 0) { SendClientMessage(playerid, COLOR_GREEN, "Lista de las propiedades 1:"); for(new i = 0; i < 8; i++) { if(propertyOwner[i] < 999) { GetPlayerName(propertyOwner[i], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%d. %s - DUEСO: %s", i, propertyNames[i], giveplayer); SendClientMessage(playerid, COLOR_YELLOW, string); } else { format(string, sizeof(string), "%d. %s - Sin dueсo.", i, propertyNames[i]); SendClientMessage(playerid, COLOR_YELLOW, string); } } return 1; } if(strcmp(cmd, "/propiedades2", true) == 0) { SendClientMessage(playerid, COLOR_GREEN, "Lista de las propiedades 2:"); for(new i = 9; i < 18; i++) { if(propertyOwner[i] < 999) { GetPlayerName(propertyOwner[i], giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%d. %s - DUEСO: %s", i, propertyNames[i], giveplayer); } else format(string, sizeof(string), "%d. %s - Sin dueсo.", i, propertyNames[i]); SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; }