Raised This Month: $ Target: $400
 0% 

Create fake player or bot (problem)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
4JOKE
Member
Join Date: Jan 2008
Old 01-27-2009 , 10:20   Create fake player or bot (problem)
Reply With Quote #1

This is my function to create fake player which I have found somewhere in this forum:
PHP Code:
new bot_id engfunc(EngFunc_CreateFakeClient"Fake_player")
new 
ptr[128]
dllfunc(DLLFunc_ClientConnectbot_id"Fake_player""127.0.0.1"ptr)
dllfunc(DLLFunc_ClientPutInServerbot_id)
cs_set_user_team(bot_idCS_TEAM_CTCS_CT_URBAN)
set_pev(bot_idpev_effects, (pev(bot_idpev_effects) | 128))
set_pev(bot_idpev_solid0)
dllfunc(DLLFunc_Spawnbot_id
The problem is, that when I create and put bot to server, he is invisible until I attack him. And when he is visible, he is not on floor, he is like flying.

I have function in my plugin which saves position of player and after few seconds it will create fake player on previous original player position. So I need to create there fake player which will be standing (not moving/flying..etc) as normal player.

Thnx.
4JOKE is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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