priMELval

Player Join macro

Jan 18th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $${
  2.  
  3. // Bind to onPlayerJoined and onSendChatMessage
  4. STRIP(&chat,%CHAT%)
  5.  
  6. IF(%KEYNAME%="onSendChatMessage")
  7. IFMATCHES(%&chat%,^/pj)
  8. IF(@playerjoinmacro)
  9. UNSET(@playerjoinmacro)
  10. LOG(&6No longer showing player join messages.)
  11. ELSE
  12. SET(@playerjoinmacro)
  13. LOG(&6Now showing player join messages.)
  14. ENDIF
  15. UNSET(@cooldown)
  16. FILTER();
  17. ENDIF
  18. ENDIF
  19.  
  20. IF(%KEYNAME%="onPlayerJoined")
  21. IF(@playerjoinmacro)
  22. IFMATCHES(%JOINEDPLAYER%,BTLP SLOT)
  23. ELSE
  24. LOG(&e%JOINEDPLAYER% has joined the game)
  25. ENDIF
  26. ENDIF
  27. ENDIF
  28. }$$
Advertisement
Add Comment
Please, Sign In to add comment