Raised This Month: $ Target: $400
 0% 

Correctly block spawn


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-21-2010 , 15:50   Re: Correctly block spawn
#1

Quote:
Originally Posted by Brreaker View Post
PHP Code:
public plugin_init() {
    
RegisterHam(Ham_Spawn"player""fwdHamSpawn");
}
public 
fwdHamSpawn(id) {
    
    
user_kill(id,); //so he doesn't get +1 death (thx unny)
    
return HAM_IGNORED;
    

You can't kill a user before he's spawned. That forward is registered for before he spawns. If you want to register a post ham hook, make the fourth parameter 1 in the registry.

This topic has been discussed before. Search. (I believe minimiller started it, but there was a very recent one in the past month or so)
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Closed Thread



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 03:35.


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