Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
Make a killspam !

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    30

    Make a killspam !

    Hello all !
    So, i want to make a killspam in C++ .
    I looked here : http://cheatersutopia.com/smforum/in...sg6531#msg6531 for do it but Dev ++ says to me many errors on this code :
    int main()
    {
    // Remember, we have to call the original later
    void( _cdecl *orig_CG_EntityEvent )( centity_t* cent, vec3_t position );

    void CG_Event_Hook( centity_t* cent, vec3_t position )
    {
    entityState_t *es;
    int cgEntEvent;

    // defnitions
    es = &cent->currentState;
    event = es->event & ~EV_EVENT_BITS;

    // Removed every piece of code we don't need for our hook

    // event in which death takes place
    if( cgEntEvent == EV_OBITUARY )
    {
    // we call the killspam we're going to make in here
    cKillSpam( es );
    // same goes for the killsounds
    cKillSounds( es );
    }

    // call the original
    orig_CG_EntityEvent(cent, position);
    }
    void cKillSpam( entityState_t *est )
    {
    // define myself and the the enemy
    int cTarget = est->otherEntityNum;
    int cAttacker = est->otherEntityNum2;

    // the name of the target / enemy
    char* cTargetName = cgs->clientinfo[cTarget].name;

    // check if you're alive
    if( cg->snap->ps.stats[STAT_HEALTH] > 0 )
    {
    // check if you aren't committing suicide
    if( cAttacker == cg->snap->ps.clientNum && cTarget != cg->snap->ps.clientNum )
    {
    char kSpam[64];

    // say it!
    sprintf( kSpam, "say ^9Haha! ^1%s ^9Got Owned On ^0[)^1DoD^0(] ^9Server !\n", cTargetName );
    pSendCommand( kSpam );
    }
    }


    return 0;
    }
    What I must to do for get no errors ?
    Sorry, I learn C++, so my level is not good !

  2. #2
    Senior Member ShowTime's Avatar
    Join Date
    Dec 2006
    Posts
    353

    Re: Make a killspam !

    More details. Tell all what are you doing. You have got aimbot source and wanna add killspam?


  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    30

    Re: Make a killspam !

    No, i just want to create a dll file ( i don't know how !) and inject it to my crushr ..

  4. #4
    Senior Member ShowTime's Avatar
    Join Date
    Dec 2006
    Posts
    353

    Re: Make a killspam !

    lol, its not that simple. You not gonna do this if you dont know c++


  5. #5
    Veteran Member Austin's Avatar
    Join Date
    Nov 2006
    Posts
    979

    Re: Make a killspam !

    Theres some good tuts on netcoders.be
    I found a whole C++ tutorial there,but idk the link

  6. #6
    Member
    Join Date
    May 2007
    Posts
    30

    Re: Make a killspam !

    Dev C++ and MSVC ++ are 2 completely different compilers :

Similar Threads

  1. Killspam
    By Raster in forum Enemy Territory Cheats
    Replies: 4
    Last Post: September 20th, 2008, 19:41
  2. ETH32-Killspam / take it to killspam and in consol
    By rttnPIG in forum ETH32 Scripts
    Replies: 0
    Last Post: June 20th, 2008, 15:02
  3. how can i make a killspam
    By andrae_07 in forum Enemy Territory Cheats
    Replies: 12
    Last Post: May 12th, 2008, 20:57
  4. how to make own Killspam in flex?!
    By lordi49 in forum Enemy Territory Cheats
    Replies: 14
    Last Post: December 24th, 2007, 14:54
  5. Make a killspam !
    By leomoldu in forum Enemy Territory Cheats
    Replies: 12
    Last Post: May 6th, 2007, 22:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •