Quote:
Originally Posted by ConnorMcLeod
What do you want to do ?
If you want to transfer player from T to CT or from CT to T, you can use CBasePlayer::SwitchTeam function.
|
i want to disable team change
the set_pdata dosent work for me and im already using orpheu for some things so i figured id give this a shot
Is this correct?
PHP Code:
{
"name" : "ChangePlayerTeam",
"class" : "CGameRules",
"library" : "mod",
"arguments" :
[
{
"type" : "CBasePlayer *",
"type" : "char *",
"type" : "int",
"type" : "int"
}
],
"indexes" :
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : 45
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : 47
}
]
}
if yes lol... how would i add that to a plugin? using getfunction didnt work for me says it cant find that on my server. its in
virtual functions/CGameRules/ChangePlayerTeam (no extension)