Comments (2)
Use this from Zombie Plague plugin:
// CS Player PData Offsets (win32)
const PDATA_SAFE = 2
const OFFSET_CSTEAMS = 114
// Linux diff's
const OFFSET_LINUX = 5 // offsets 5 higher in Linux builds
// Set a Player's Team
stock fm_cs_set_user_team(id, team)
{
// Prevent server crash if entity's private data not initalized
if (pev_valid(id) != PDATA_SAFE)
return;
set_pdata_int(id, OFFSET_CSTEAMS, team, OFFSET_LINUX)
}
from yapb.
Make plugin send "TeamInfo" message when changing teams. See zombie plague code for example.
from yapb.
Related Issues (20)
- При вводе команды yb kill_ct, yb kill ct или yb kill 2, умирают террористы а не КТшники HOT 3
- Failure of enemy predictions in some circumstances HOT 2
- yb_enable_fake_steamids 1 doesn't work HOT 5
- Ошибка в коде? HOT 1
- yb_show_latency also alters player pings HOT 3
- Повышение прозрачности и доверия в отношении ботов HOT 14
- logs bots HOT 6
- [Feature request] Прицеливание ботов на модели с кастомным model index HOT 5
- Bots can't walk up slopes, even small ones have to jump on them. HOT 6
- Боты перестают стрелять из снайперок когда враг находится слишком близко HOT 4
- Последовательность логики у Bot::filterTasks для ZombieMod HOT 1
- Progressive skill levels HOT 1
- steam id of bots HOT 4
- [Feature request] dead players can control remaining bot(s) HOT 2
- there is bug HOT 6
- Специфический баг с щипцами HOT 21
- Upgrade yapb for zombie mod HOT 36
- Не работает yb_think_fps_disable HOT 7
- Вылетает игра из-за fps 90 HOT 15
- гайд по компиляции HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yapb.