CMD:credits(playerid, params[])
{
new tmp[1000];
new maxcredits = dini_Int(AddDirFile(dir_datafiles, FILE_TOTALSTAT), "credits");
if (maxcredits == 0) return SendClientMessage2(playerid, COLOR_RED, "Currently there are no Credits.");
new tmp3[2048];
for (new t = 1; t <= maxcredits; t++)
{
format(tmp, 50, "creditname%d", t);
format(tmp, sizeof(tmp), "%s", dini_Get(AddDirFile(dir_datafiles, FILE_CREDITS), tmp));
format(tmp3, sizeof(tmp3), "%s%s%s:{FFFFFF} %s", tmp3, creditscolor(t), tmp, creditssname(t));
}
SendClientMessage2(playerid, COLOR_ORANGE, "-------------------------|");
SendClientMessage2(playerid, COLOR_WHITE, tmp3);
SendClientMessage2(playerid, COLOR_ORANGE, "--------------------------");
return 1;
}
CMD:credits(playerid, params[])
{
new tmp[1000];
new maxcredits = dini_Int(AddDirFile(dir_datafiles, FILE_TOTALSTAT), "credits");
if (maxcredits == 0) return SendClientMessage2(playerid, COLOR_RED, "Currently there are no Credits.");
new tmp3[2048];
SendClientMessage2(playerid, COLOR_ORANGE, "-------------------------|");
for (new t = 1; t <= maxcredits; t++)
{
format(tmp, 50, "creditname%d", t);
format(tmp, sizeof(tmp), "%s", dini_Get(AddDirFile(dir_datafiles, FILE_CREDITS), tmp));
format(tmp3, sizeof(tmp3), "%s%s%s:{FFFFFF} %s", tmp3, creditscolor(t), tmp, creditssname(t));
SendClientMessage2(playerid, COLOR_WHITE, tmp3);
}
SendClientMessage2(playerid, COLOR_ORANGE, "--------------------------");
return 1;
}
CMD:credits(playerid, params[])
{
new tmp[1000];
new maxcredits = dini_Int(AddDirFile(dir_datafiles, FILE_TOTALSTAT), "credits");
if (maxcredits == 0) return SendClientMessage2(playerid, COLOR_RED, "Currently there are no Credits.");
new tmp3[2048];
SendClientMessage2(playerid, COLOR_ORANGE, "-------------------------|");
for (new t = 1; t <= maxcredits; t++)
{
format(tmp, 50, "creditname%d", t);
format(tmp, sizeof(tmp), "%s", dini_Get(AddDirFile(dir_datafiles, FILE_CREDITS), tmp));
format(tmp3, sizeof(tmp3), "%s%s%s:{FFFFFF} %s\n", tmp3, creditscolor(t), tmp, creditssname(t));
SendClientMessage2(playerid, COLOR_WHITE, tmp3);
}
SendClientMessage2(playerid, COLOR_ORANGE, "--------------------------");
return 1;
}
PHP Code:
|