Thank you for the fast response Annie but what i mean is script in ITEMOnInit:
bindatcmd "test", strnpcinfo(0)+"::Ontest";
end;
Ontest:
if ( !countitem(<item ID>end;
<blah blah here>;
end;
countitem for carrying, isequipped for wearing
Yes, I already have the SRC/Plugin, but I only want the command to be available on a player who has this item..what does the @afk command do ?
-> kick the player offline but still remain in the server ?
I think saw this before on some source release somewhere
on script put 'atcommand "@afk";' and make the item type delayed consumption(11 I guess, but check please) so it is not been used. So, double-clicking the item will cause @afk to be used.orYes, I already have the SRC/Plugin, but I only want the command to be available on a player who has this item..what does the @afk command do ?
-> kick the player offline but still remain in the server ?
I think saw this before on some source release somewhere
- script kjhfksfjhskfj -1,{OnInit: bindatcmd "afk", strnpcinfo(0)+"::OnCommand"; // overwrite the @afk command end;OnCommand: if ( !countitem(5474) ) { message strcharinfo(0), "You must have an AFK hat to use this command"; end; } atcommand "@afk"; // then execute back the original command end;}
Whoahh, Thank you for this. gonna test this soon, Thank you very muchno need to do until that complicated
just put this script in
- script kjhfksfjhskfj -1,{OnInit: bindatcmd "afk", strnpcinfo(0)+"::OnCommand"; // overwrite the @afk command end;OnCommand: if ( !countitem(5474) ) { message strcharinfo(0), "You must have an AFK hat to use this command"; end; } atcommand "@afk"; // then execute back the original command end;}
We use essential cookies to make this site work, and optional cookies to enhance your experience.