Quote:
Originally Posted by olj
game_newmap event didnt work for me when i was trying to clear variables as well.
|
Yeah, I have been focusing on writing the logic for detecting all players when they enter the server and determining if this is the first round or second round of VS. So far things are going OK but the issue I am having is getting the value of ConVar Host_map. I tried using GetConVarString(FindConVar("Host_map"), str_var, sizeof(str_var)) but it just returns a long number instead of the map name. When I get everything to work and have debugged it so their is no errors I will post the full code. If I can find the right hooks then I should be able to get it to work. Right now I believe I am using the event Player_spawn(I am not at my home computer.) This Hooks when a player first spawns on map start. This combined with an array that stores each users last loaded map should work. I am pairing this with a player_disconnect hook(not sure if this is what I am using)that should be able to clear the index used to store a players last played map when they log out. This would prevent anyone getting that players ClientID from receiving their points. I haven't gotten it to work because of the issue getting the map's name. I would love to see that points issue get corrected since it appears to be the only real issue with the script.