30.06.2013, 16:44
love you (Y)
Final Result:
Hope someone more than me got use of it.
Thank you ******.
Final Result:
pawn Код:
YCMD:commands(playerid, params[], help)
{
if(help) return SendInfoMessage(playerid,"Shows all available commands to a certain player.");
new count = Command_GetPlayerCommandCount(playerid);
new string[128],str[128];
format(string,sizeof(string),"List of commands for {a9c4e4}%s{FFFFFF}:",pName(playerid));
SendInfoMessage(playerid,"Type /help [command] for more info.");
SendInfoMessage(playerid,string);
for (new i = 0; i < count; i+=5)
{
new buffer[YSI_MAX_STRING];
buffer = Command_GetNext(i, playerid);
if(buffer[0] != 0) format(str, sizeof (str), "%s /%s", str, buffer);
buffer = Command_GetNext(i+1, playerid);
if(buffer[0] != 0) format(str, sizeof (str), "%s /%s", str, buffer);
buffer = Command_GetNext(i+2, playerid);
if(buffer[0] != 0) format(str, sizeof (str), "%s /%s", str, buffer);
buffer = Command_GetNext(i+3, playerid);
if(buffer[0] != 0) format(str, sizeof (str), "%s /%s", str, buffer);
buffer = Command_GetNext(i+4, playerid);
if(buffer[0] != 0) format(str, sizeof (str), "%s /%s", str, buffer);
SendInfoMessage(playerid, str);
format(str,sizeof(str),"");
}
return 1;
}
Thank you ******.