Sol Posted November 30, 2011 Share Posted November 30, 2011 I made a simple script to remove players guid, but it doesn't remove why? function et_ClientConnect( clientNum, firstTime, isBot ) if isBot == false then et.Info_SetValueForKey( et.trap_GetUserinfo( clientnum ), "cl_guid", "" ) -- MAX_GAMESTATE_CHARS end end Simple Panzer Check author = "Sol" info = "PF Check" ver = "1.0" mintopanzer = 30 -- min players to panza on checktime = 30 -- seconds between checks spammsg = true -- msg available and unavailable weapon = "team_maxpanzers" -- current weapon (team_maxpanzers ; team_maxflamers ; team_maxmg42s ; team_maxgrenlaunchers etc) pos = "chat" -- position available = "^3Panzer is now ^2Available" -- available msg unavailable = "^3Panzer is now ^1Unavailable" -- unavailable msg function et_InitGame( levelTime, randomSeed, restart ) et.RegisterModname( "" .. info .. " ver: " .. ver .. "") end oldtime = os.time() function et_RunFrame( levelTime ) currentime = os.time() if currentime - oldtime > checktime then if et_CountPlayers() >= mintopanzer then et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s 1\n",weapon)) if spammsg == true then et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s %s\n", pos, available)) end else et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s 0\n",weapon)) if spammsg == true then et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("%s %s\n", pos, unavailable)) end end oldtime = currentime end end function et_CountPlayers() local i = 0 local liczba = 0 for i = 0, (et.trap_Cvar_Get("sv_maxclients") - 1) do if et.gentity_get(i, "sess.sessionTeam") ~= 0 then liczba = liczba + 1 end end return liczba end I will add more scripts soon Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted November 30, 2011 Management Share Posted November 30, 2011 I stated wrong information earlier. The cl_guid has no effect on the MAX_GAMESTATE_CHARS problem. So forcing the cl_guid to empty is not needed. However, I don't know the reason why the forcing doesn't work. Quote Link to comment Share on other sites More sharing options...
Sol Posted November 30, 2011 Author Share Posted November 30, 2011 Anyway thanks for the informations gao. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.