Advertisement
JWhy

CommandHelper main.ms

Jul 28th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. bind(player_join, null, null, @event,
  2. @prefix = 'PREFIX';
  3.  
  4. @array = get_value('players.joined')
  5. if( is_null(@array) ) {
  6. @array = array();
  7. } else {
  8. array_sort(@array, 'STRING_IC');
  9. }
  10.  
  11. if(array_contains(@array, player())) {
  12.  
  13. } else {
  14. array_push(@array, player());
  15. store_value('players.joined', @array);
  16. runas('~console', concat(concat('/pex user ', player()), concat(' prefix ', @prefix)));
  17. }
  18.  
  19. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement