{"action":"created","issue":{"url":"https://api.github.com/repos/s1lentq/reapi/issues/73","repository_url":"https://api.github.com/repos/s1lentq/reapi","labels_url":"https://api.github.com/repos/s1lentq/reapi/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/s1lentq/reapi/issues/73/comments","events_url":"https://api.github.com/repos/s1lentq/reapi/issues/73/events","html_url":"https://github.com/s1lentq/reapi/issues/73","id":225281678,"number":73,"title":"rg_set_account_rules not working?","user":{"login":"OciXCrom","id":14963855,"avatar_url":"https://avatars1.githubusercontent.com/u/14963855?v=3","gravatar_id":"","url":"https://api.github.com/users/OciXCrom","html_url":"https://github.com/OciXCrom","followers_url":"https://api.github.com/users/OciXCrom/followers","following_url":"https://api.github.com/users/OciXCrom/following{/other_user}","gists_url":"https://api.github.com/users/OciXCrom/gists{/gist_id}","starred_url":"https://api.github.com/users/OciXCrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OciXCrom/subscriptions","organizations_url":"https://api.github.com/users/OciXCrom/orgs","repos_url":"https://api.github.com/users/OciXCrom/repos","events_url":"https://api.github.com/users/OciXCrom/events{/privacy}","received_events_url":"https://api.github.com/users/OciXCrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-29T20:04:41Z","updated_at":"2017-04-29T20:31:01Z","closed_at":null,"body":"Is this function not working at all or I misunderstood what it does? Does it change the default money rewards, or it does something else? I tried using **rg_set_account_rules(RR_CTS_WIN, 666)** in **plugin_init()** but I didn't get the 666 reward when playing as CT and winning the round. Same goes for all other account types. **rg_get_account_rules()** however displays the changed value."},"comment":{"url":"https://api.github.com/repos/s1lentq/reapi/issues/comments/298192750","html_url":"https://github.com/s1lentq/reapi/issues/73#issuecomment-298192750","issue_url":"https://api.github.com/repos/s1lentq/reapi/issues/73","id":298192750,"user":{"login":"OciXCrom","id":14963855,"avatar_url":"https://avatars1.githubusercontent.com/u/14963855?v=3","gravatar_id":"","url":"https://api.github.com/users/OciXCrom","html_url":"https://github.com/OciXCrom","followers_url":"https://api.github.com/users/OciXCrom/followers","following_url":"https://api.github.com/users/OciXCrom/following{/other_user}","gists_url":"https://api.github.com/users/OciXCrom/gists{/gist_id}","starred_url":"https://api.github.com/users/OciXCrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OciXCrom/subscriptions","organizations_url":"https://api.github.com/users/OciXCrom/orgs","repos_url":"https://api.github.com/users/OciXCrom/repos","events_url":"https://api.github.com/users/OciXCrom/events{/privacy}","received_events_url":"https://api.github.com/users/OciXCrom/received_events","type":"User","site_admin":false},"created_at":"2017-04-29T20:31:01Z","updated_at":"2017-04-29T20:31:01Z","body":"That worked, but it's not supposed to be like that. There was no bomb planted on the map, so it should use RR_CTS_WIN. I see that it checks if the map has a bomb target, so either the code is wrong or the name of the const. RR_BOMB_DEFUSED should be given when the bomb is defused, and RR_CTS_WIN if there was no bomb at all. Also, another thing - changing the account rules once makes them stay forever. After removing the plugin, restarting the map, even shutting down the server and starting it again - the modified values are still there."}}
{"actor":{"display_login":"OciXCrom"}}