23.07.2015, 23:24
PHP код:
stock Adminhelpplay(playerid)
{
new AdminHelpstats[32];
if(pInfo[playerid][AdminHelp] == 0) format(AdminHelpstats, sizeof(AdminHelpstats), "Player");
else if(pInfo[playerid][AdminHelp] == 1) format(AdminHelpstats, sizeof(AdminHelpstats),"Helper");
else if(pInfo[playerid][AdminHelp] == 2) format(AdminHelpstats, sizeof(AdminHelpstats), "Moderator");
else if(pInfo[playerid][AdminHelp] == 3) format(AdminHelpstats, sizeof(AdminHelpstats), "Administrator");
else if(pInfo[playerid][AdminHelp] == 4) format(AdminHelpstats, sizeof(AdminHelpstats), "Trusted Player");
return AdminHelpstats;
}
PHP код:
new string[128], playerb;
format(string, sizeof(string), " Stats of %s (%s)", Lname(playerb), Adminhelpplay(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);