Raised This Month: $ Target: $400
 0% 

Godmode Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-01-2012 , 17:13   Godmode Problem
Reply With Quote #1

Hello,

I got a problem with set_user_godmode function..

i got

PHP Code:
CS_TEAM_CT

bla bla bla
set_user_godmode
(id1
But this godmode function doesn't work with Ham_Touch_Grenade_Pre..
Why not?
Do i have to use Ham_TakeDamage_Pre?

Thanks
__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu
MokeN is offline
Send a message via Skype™ to MokeN
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-01-2012 , 20:51   Re: Godmode Problem
Reply With Quote #2

show your code.
Those three lines mean nothing.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-02-2012 , 05:38   Re: Godmode Problem
Reply With Quote #3

Yeh, i mean

this godmode function (set_user_gomode)
PHP Code:
public SnowballGame()
{
    
g_iCurrentGame GAME_SNOWBALL
    
    
new iPlayers[32]
    new 
iNum
    
new id
 
    get_players
iPlayersiNum"a" )
 
    for( new 
0iNumi++ )
    {
        
id iPlayers[i]
       
        
set_hudmessage 2556464, -1.00.3500.15.00.10.1, -
        
show_hudmessage 0"[SG]: Snowball Game Started!")
       
        
strip_user_weaponsid )
       
        if (
cs_get_user_team(id) == CS_TEAM_CT)
        {
    
give_item(id"weapon_knife")
    
set_user_godmode(id1)
       
      } else if (
cs_get_user_team(id) == CS_TEAM_T)
        {
            
give_item(id"weapon_hegrenade")
            
cs_set_user_bpammoidCSW_HEGRENADE200 )
        }
       
    }

doesn't work with this

PHP Code:
public Ham_Touch_Grenade_PreiEntityid )
{
        if(
g_iCurrentGame != GAME_DGBALL && g_iCurrentGame != GAME_SNOWBALL && g_iCurrentGame != GAME_ANGRYBIRDS && g_iCurrentGame != GAME_ZMBOMBS) return HAM_IGNORED 
       
        
if(is_user_alive(id)) ExecuteHamB(Ham_Killedid,pev(iEntity,pev_owner), 0);
       
        
remove_entity(iEntity)
       
        return 
HAM_IGNORED

__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu
MokeN is offline
Send a message via Skype™ to MokeN
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-02-2012 , 05:54   Re: Godmode Problem
Reply With Quote #4

PHP Code:
if(is_user_alive(id)) ExecuteHamB(Ham_Killedid,pev(iEntity,pev_owner), 0); 
Try to make it:

PHP Code:
if(is_user_alive(id))
{
set_user_godmode(id)
ExecuteHamB(Ham_Killedid,pev(iEntity,pev_owner), 0);

__________________

Last edited by <VeCo>; 07-02-2012 at 05:54.
<VeCo> is offline
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-02-2012 , 05:56   Re: Godmode Problem
Reply With Quote #5

thanks
__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu
MokeN is offline
Send a message via Skype™ to MokeN
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-02-2012 , 06:04   Re: Godmode Problem
Reply With Quote #6

On touch, instead of Ham_Killed, send Ham_TakeDamage.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-02-2012 , 10:01   Re: Godmode Problem
Reply With Quote #7

But it bugs alot with this ham take damage function, in round start they got godmode but when u start a game they don't got it anymore..

PHP Code:
public Ham_TakeDamage_PrevictiminflictorattackerFloat:damagedmgbits )
{
    if(
g_iCurrentGame == GAME_HIDE || g_iCurrentGame == GAME_MUSIC) return HAM_IGNORED
    
    
return (cs_get_user_team(victim) == CS_TEAM_CT) ? HAM_SUPERCEDE HAM_IGNORED

Quote:
Originally Posted by ConnorMcLeod View Post
On touch, instead of Ham_Killed, send Ham_TakeDamage.
EDIT: Now i get alot of errors/warnings in the logs;

Code:
L 07/02/2012 - 16:13:01: [AMXX] Run time error 10 (plugin "gamemenu.amxx") (native "ExecuteHamB") - debug not enabled!
L 07/02/2012 - 16:13:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 07/02/2012 - 16:13:02: [HAMSANDWICH] Bad arg count.  Expected 6, got 4.
__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu

Last edited by MokeN; 07-02-2012 at 10:21.
MokeN is offline
Send a message via Skype™ to MokeN
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 15:23.


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