Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $${
- &type = "unknown";
- //initiates type as unknown
- //if chat = regex of actual chat message, do nothing
- IFMATCHES(%CHATCLEAN%,"^(\[(\S+)\] )?(\[(\S+)\] )?(\S+): (\.+)$")
- &type = "chat";
- MATCH(%CHATCLEAN%,"^(\[(\S+)\] )?(\[(\S+)\] )?(\S+): (\.+)$",{&temp,&parkour_rank,&temp,&donor_rank,&friendname,&message}
- ENDIF
- //if chat message is equal to friendlist message, set type to friendlist
- IFMATCHES(%CHATCLEAN%,"^(\S+) is in (.+?)$")
- MATCH(%CHATCLEAN%,"^(\S+) is in (.+?)$",{&friendname});
- &type = "friendlist";
- ENDIF
- IF(&type = "friendlist")
- Push(@&friendarray[],%&friendname%);
- //LOG(%&friendname%);
- //&arraysizee = ARRAYSIZE(@&friendarray[]);
- //LOG(%&arraysizee%);
- ENDIF;
- //these lines worked without a delay and without button but very spammy
- //LOG(%&friendname%);
- //if type is friendlist, run command to invite to housing
- //IF(%&type% = "friendlist")
- // ECHO("/housing invite %&friendname%");
- //ENDIF
- }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement