yuhsing

Untitled

Apr 4th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. - script Sample -1,{
  2. OnInit:
  3. bindatcmd "flag",strnpcinfo(3)+"::OnAtCommand";
  4. setarray .flag_list,48,49,50,51;
  5. .flag_list_size = getarraysize( .flag_list );
  6. end;
  7.  
  8. OnAtCommand:
  9. .@num = atoi( .@atcmd_parameters$[0] ) - 1;
  10. if( @delay > gettimetick(2) ){
  11. dispbottom "Delaying...10seconds.";
  12. }else if( .@num >= 0 && .@num < .flag_list_size ){
  13. unitemote getcharid(3),.flag_list[ .@num ];
  14. @delay = gettimetick(2) + 10;
  15. }else{
  16. dispbottom "Only no. 1 ~ "+.flag_list_size;
  17. }
  18. end;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment