Can i request for @item restriction for example you cannot @item certain items.
I have written a script that will return true/false but it doesnt work if the user input item Constant. https://pastebin.com/bvYqDXhB
function script NoItemProduce {
.input = atoi(getarg(0));
setarray(.disabledItems,501,512,503);
if(array_exists(.disabledItems,.input) ){
dispbottom("This item is not available for item producing",C_RED);
return true;
}
return false;
}
Can i request for @item restriction for example you cannot @item certain items.
I have written a script that will return true/false but it doesnt work if the user input item Constant.
https://pastebin.com/bvYqDXhB
Share this post
Link to post
Share on other sites