Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. then
  2. 0B36: samp 2@ = get_player_nickname 0@
  3. if 8C14: strcmp string1 24@ string2 2@
  4. then
  5. //player just connected
  6. 0B37: samp 3@ = get_player_color 0@
  7. 0AD1: show_formatted_text_highpriority " %s (id: %d): Prisijunge." color 3@ 2@
  8. 0AF5: write_string 2@ to_ini_file "CLEO\INI\doorKeeper.ini" section "Name" key 25@v
  9. end
  10. else
  11. //check if disconnected
  12. 0AD3: 10@ = format "nope"
  13. if 8C14: strcmp string1 24@ string2 10@
  14. then
  15. //player just disconnected
  16. 0AD1: show_formatted_text_highpriority "%s (id: %d): Atsijunge." color 0xABABAB 24@ 0@
  17. 0AF5: write_string 10@ to_ini_file "CLEO\INI\doorKeeper.ini" section "Name" key 25@v
  18. end
  19. end
  20. 0AC9: free_allocated_memory 24@
  21. 0AC9: free_allocated_memory 10@
  22. 0AB2: ret 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement