Raised This Month: $ Target: $400
 0% 

Action on spawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 11-27-2011 , 13:50   Re: Action on spawn
Reply With Quote #6

Quote:
Originally Posted by Napoleon_be View Post
PHP Code:
RegisterHam(Ham_Spawn"player""fwd_spawn"1
PHP Code:
public fwd_spawn(id) {
        
set_user_godmode(id)

Add this into your code, and it should work.
set_user_godmode( id )

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.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
 



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 08:28.


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