Setting team with fakemeta
I'm having trouble setting a users team in Counter-Strike with fakemeta.
I tried usingthe following to set to terrorist... set_pev(id, pev_team, 1); ... but that didn't work. Can someone let me knowhow to do this please? |
Re: Setting team with fakemeta
Take a look at the source code to cs_set_user_team. It appears that there are a few private data offsets that you have to update in the player.
|
Re: Setting team with fakemeta
Quote:
PHP Code:
|
Re: Setting team with fakemeta
Thanks that works perfect.
Are there any good threads telling how pdata works? I tried searching but failed to find anything. I would really like to understand what pdata is, and how it works, and where to get the offsets (whatever they are!). |
Re: Setting team with fakemeta
I needed this to make custom team menus. I blocked the VGUI and text menu and created my own text menu.
Here is a problem though. When someone using VGUI menus tries to select a team, it doesn't set them on a team. If they are using the text menu style, then it works fine. The funny thing is that I made it so when a team was selected it would also print a message. The message prints, but the team doesn't change. I'm testing this on a linux server, do you think the offset would have something to do with it? |
Re: Setting team with fakemeta
The offset depends on the CPU type if it is a 32 or 64 bit CPU
and the OS...windows and linux have different offsets... In the pdata natives there is a parameter for the linux offset difference. Code:
#if cellbits == 32greetz regalis |
| All times are GMT -4. The time now is 21:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.