Advertisement
villers

Die after 5s

Oct 26th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. ACMD_FUNC(die)
  2. {
  3.     nullpo_retr(-1, sd);
  4.  
  5.     if(DIFF_TICK(gettick(), sd->canlog_tick) < battle_config.prevent_logout)
  6.     {
  7.       clif_displaymessage(fd, msg_txt(909)); // @die fail. Vous devez attendre 5 secondes
  8.       return -1;
  9.     }
  10.  
  11.     clif_specialeffect(&sd->bl,450,SELF);
  12.     status_kill(&sd->bl);
  13.     clif_displaymessage(fd, msg_txt(13)); // A pity! You've died.
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement