AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fake player (https://forums.alliedmods.net/showthread.php?t=135542)

CsIosefin 08-17-2010 09:33

Fake player
 
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)
}


fireattack 08-17-2010 09:35

Re: Fake player
 
Use the code of the plugin by OneEyed "Faketeambot"

CsIosefin 08-17-2010 10:14

Re: Fake player
 
fireattack: If you use someone else's code, not how do I find the explanation that the point of that?

Alucard^ 08-17-2010 10:20

Re: Fake player
 
Would be better if you say the complete error, not only the first two words.

CsIosefin 08-17-2010 10:25

Re: Fake player
 
Look at the picture:
[IMG]http://img823.**************/img823/5866/hlds.png[/IMG]

dFF 08-17-2010 10:41

Re: Fake player
 
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 )
    }




All times are GMT -4. The time now is 21:59.

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