View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 07-05-2018 , 10:04   Re: [CSGO] Hook map end vote result
Reply With Quote #6

PHP Code:

events_ids_translate
[EVENT_GAME_NEWMAP]<-["game_newmap",["mapname"]];

events_ids_translate[EVENT_NEXTLEVEL_CHANGED]<-["nextlevel_changed",["nextlevel"]];

events_ids_translate[EVENT_ENDMATCH_MAPVOTE_SELECTING_MAP]<-["endmatch_mapvote_selecting_map",["count","slot1","slot2","slot3","slot4","slot5","slot6","slot7","slot8","slot9","slot10"]];
events_ids_translate[EVENT_ENDMATCH_CMM_START_REVEAL_ITEMS]<-["endmatch_cmm_start_reveal_items",[]]; 
Try `nextlevel_changed` event (parametes: "nextlevel") (string ???)

If it doesn't work try `endmatch_mapvote_selecting_map` event (parameters: "count","slot1","slot2","slot3","slot4","slot 5","slot6","slot7","slot8","slot9","slot10 ").
I don't know when it's called and i don't know if the parameters are strings or ints. If it's called at every vote, you can start sending your own maps in the vote and then you count the votes.
https://forums.alliedmods.net/showthread.php?t=288728

`endmatch_cmm_start_reveal_items` has no parameters.

Last edited by Ilusion9; 07-05-2018 at 10:18.
Ilusion9 is offline