Raised This Month: $ Target: $400
 0% 

[SOLVED]godmode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-18-2009 , 03:10   [SOLVED]godmode
Reply With Quote #1

PHP Code:
public fwHamPlayerSpawnPostid 
{
    
set_user_godmode(id,1)
    new 
map_version[7]
    
get_mapname(map_version,6)
    if(
equali(map_version,"def_"4))
    {
        
set_task(GIVING_AN_SCOUT"giving_scout"id);
    }

PHP Code:
L 06/18/2009 09:06:37: [FUNInvalid player 1
L 06
/18/2009 09:06:37: [AMXXDisplaying debug trace (plugin "Untitled.amxx")
L 06/18/2009 09:06:37: [AMXXRun time error 10native error (native "set_user_godmode")
L 06/18/2009 09:06:37: [AMXX]    [0Untitled.sma::fwHamPlayerSpawnPost (line 199
__________________

Last edited by One; 06-18-2009 at 04:32.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
kielor
Senior Member
Join Date: Jan 2009
Location: Russia, Novosibirsk
Old 06-18-2009 , 03:21   Re: godmode
Reply With Quote #2

try set_pev(id, pev_takedamage, 0.0) instead of set_user_godmode(id, 1)
kielor is offline
Send a message via ICQ to kielor Send a message via Skype™ to kielor
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-18-2009 , 03:23   Re: godmode
Reply With Quote #3

set_user_godmode() is fine.

@One : you forget to add a check before if user is alive or not.
__________________
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-18-2009 , 03:27   Re: godmode
Reply With Quote #4

ty ty.

i tried with takeamage 0 but didnt work so i thinked i give god mod & good is.

so now which should i use? what u mean? godmode or takedmg 0?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-18-2009 , 04:06   Re: godmode
Reply With Quote #5

set_user_godmode() is fine. All you have to do is to add before all a check using is_user_alive().
__________________
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-18-2009 , 04:33   Re: [SOLVED]godmode
Reply With Quote #6

ok then godemod ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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:36.


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