Raised This Month: $ Target: $400
 0% 

Fake player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CsIosefin
Senior Member
Join Date: Aug 2009
Old 08-17-2010 , 09:33   Fake player
Reply With Quote #1

I want to make a plugin to put the boot on the server, I made this plugin, but ... I give erroare "Don't send ..."
Why?
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

new const bot_name[ ] = "Fake Player"

public plugin_init() 
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR")
	
	new FAKE_PLAYER = engfunc(EngFunc_CreateFakeClient, bot_name)

	dllfunc(DLLFunc_ClientConnect, FAKE_PLAYER)
	dllfunc(DLLFunc_ClientPutInServer,FAKE_PLAYER)
	set_pev(FAKE_PLAYER, pev_team, 3)
}
CsIosefin is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 08-17-2010 , 09:35   Re: Fake player
Reply With Quote #2

Use the code of the plugin by OneEyed "Faketeambot"
fireattack is offline
CsIosefin
Senior Member
Join Date: Aug 2009
Old 08-17-2010 , 10:14   Re: Fake player
Reply With Quote #3

fireattack: If you use someone else's code, not how do I find the explanation that the point of that?
CsIosefin is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-17-2010 , 10:20   Re: Fake player
Reply With Quote #4

Would be better if you say the complete error, not only the first two words.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
CsIosefin
Senior Member
Join Date: Aug 2009
Old 08-17-2010 , 10:25   Re: Fake player
Reply With Quote #5

Look at the picture:
[IMG]http://img823.**************/img823/5866/hlds.png[/IMG]
CsIosefin is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 08-17-2010 , 10:41   Re: Fake player
Reply With Quote #6

PHP Code:
#include < amxmodx >
#include < fakemeta >

#define TEAM_SPEC 3

new const bot_name[ ] = "Fake Player"

public plugin_init() 
{
    
set_task3.0"tsk_plugin_init" )
}

public 
tsk_plugin_init( )
{    
    new 
FAKE_PLAYER engfuncEngFunc_CreateFakeClientbot_name )
    if( 
pev_validFAKE_PLAYER ) ) 
    {
        
engfuncEngFunc_FreeEntPrivateDataFAKE_PLAYER )
        
dllfuncMetaFunc_CallGameEntity"player"FAKE_PLAYER )
        
        
set_user_infoFAKE_PLAYER"*bot""1" )
        
set_pevFAKE_PLAYERpev_flagspevFAKE_PLAYERpev_flags ) | FL_FAKECLIENT )
        
        new 
trash128 ]
        
dllfuncDLLFunc_ClientConnectFAKE_PLAYERbot_name"127.0.0.1"trash )
        
dllfuncDLLFunc_ClientPutInServerFAKE_PLAYER )
        
        
set_pevFAKE_PLAYERpev_teamTEAM_SPEC )
        
dllfuncDLLFunc_ThinkFAKE_PLAYER )
    }

dFF is offline
Reply



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 21:59.


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