Jump to content

cl_guid userinfo


Sol

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...