AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I make a faketeambot change his name but.. (https://forums.alliedmods.net/showthread.php?t=83522)

hzqst 01-11-2009 01:13

I make a faketeambot change his name but..
 
I make a faketeambot change his name but doesnt work
===change name:===
Quote:

if(pev_valid(g_tbot))
client_cmd(g_tbot, "name %s", team_names[1])
Quote:

new const team_names[][] = {
"=== CT Team ===",
"=== Terrorist Team ==="
}

Quote:

if(!is_user_connected(g_tbot)){
g_tbot = engfunc(EngFunc_CreateFakeClient, team_names[3])
new ptr[128]
dllfunc(DLLFunc_ClientConnect, g_tbot, team_names[0], "127.0.0.1", ptr )
dllfunc(DLLFunc_ClientPutInServer, g_tbot)
fm_set_user_team(g_tbot, CS_TEAM_T)
}
is there a native i can change bots' names?

AntiBots 01-11-2009 01:42

Re: I make a faketeambot change his name but..
 
try to use set_user_info

hzqst 01-11-2009 04:35

Re: I make a faketeambot change his name but..
 
thx
Quote:

engfunc(EngFunc_SetClientKeyValue, g_tbot, engfunc(EngFunc_GetInfoKeyBuffer, g_tbot), "name", team_names[1])


All times are GMT -4. The time now is 01:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.