Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. //char.cpp szukasz:
  2.  
  3. if ((GetExchange() || IsOpenSafebox() || IsCubeOpen()))
  4. {
  5. pkChrCauser->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»ó´ëąćŔĚ ´Ů¸Ą °Ĺ·ˇ¸¦ ÇĎ°í ŔÖ´Â ÁßŔÔ´Ď´Ů."));
  6. return;
  7. }
  8.  
  9. //pod dodajesz (tylko tam sb pozmieniaj na te swoje ShopShowTime :P
  10. int limit_time = 5;
  11. int iPulse = thecore_pulse();
  12. if (iPulse - pkChrCauser->GetShopOpenTime() < PASSES_PER_SEC(limit_time))
  13. {
  14. pkChrCauser->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("YOU_CAN_NOT_OPEN_SHOP_YET_WAIT_%d_SECONDS"), limit_time);
  15. return;
  16. }
  17. pkChrCauser->SetShopOpenTime(limit_time);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement