Action on spawn
how to perform godmode ON on spawn?
i have this code.. but i'm not that good to fix that :< PHP Code:
|
Re: Action on spawn
PHP Code:
PHP Code:
|
Re: Action on spawn
Don't forget to check if the player is alive.
|
Re: Action on spawn
Quote:
|
Re: Action on spawn
Quote:
should be set_user_godmode( id, 1 ); Your way will disable godmode. You need to set the flag to 1 so that it sets it to enabled. The second parameter defaults to disabled, so just leaving it blank will turn off godmode. |
Re: Action on spawn
Quote:
|
Re: Action on spawn
Quote:
|
Re: Action on spawn
From ham_const.inc
Code:
* Description: This is typically called whenever an entity is created. |
Re: Action on spawn
Quote:
Test it. You'll see that it gets called before you spawn too. That's why everybody does it. EDIT: I never said he was gonna spawn when he connects. I said Ham_Spawn is also called when a player connects. Doing stuff when he's not alive can throw runtime errors or even crash the server. |
Re: Action on spawn
@Napolean: Like somebody says to you in almost every thread you post that you try to help people, Don't try to help people if you don't know what you're doing.
|
All times are GMT -4. The time now is 17:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.