15.07.2015, 22:52
PHP код:
command(maletero, playerid, params[])
{
if(!sscanf(params, "s", params))
{
if(strcmp(params,"acceder",true) == 0)
{
new list[385],
listing2=-1;
format(list, sizeof(list), "#\tObjeto\tTipo\tUsos\n");
for(new l; l < maleteross; ++l)
{
if(maletero[pinfo[playerid][maletero]][objeto][l] != TRUNK_INVALID_OBJECT)
{
listing2++;
listing[listing2][playerid]=l;
format(list, 1024, "%s[%d]\t%s\t%s\t%d\n", list, l+1, GetObjectName(maletero[pinfo[playerid][maletero]][objeto][l]), trunkobjects[maletero[pinfo[playerid][maletero]][tipo][l]+1], maletero[pinfo[playerid][maletero]][cantidad][l]);
}
}
Dialog_Show(playerid, trunk, DIALOG_STYLE_TABLIST_HEADERS, "Maletero", list, "Tomar", "Salir");
}
}
return 1;
}