Raised This Month: $ Target: $400
 0% 

Ham_Spawn not working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xXSnowGamingXx
Junior Member
Join Date: Mar 2014
Old 06-23-2017 , 09:31   Ham_Spawn not working?
Reply With Quote #1

PHP Code:
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1); 
PHP Code:
public fwHamPlayerSpawnPost(id)
{
    if(
is_user_alive(id))
    {
        
client_printc(id"Type /rs to reset your score");
                
set_user_maxspeed(id381);
    }

But it does not display this message... Why? And it does not change the speed too

Last edited by xXSnowGamingXx; 06-23-2017 at 09:56.
xXSnowGamingXx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-23-2017 , 09:40   Re: Ham_Spawn not working?
Reply With Quote #2

client_printc ?
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
xXSnowGamingXx
Junior Member
Join Date: Mar 2014
Old 06-23-2017 , 09:56   Re: Ham_Spawn not working?
Reply With Quote #3

PHP Code:
stock client_printc(const id, const input[], any: ...)
{
    new 
count 1players32 ]
    static 
msg191 ]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^x04")       // Green Color
    
replace_all(msg190"!n""^x01")       // Default Color
    
replace_all(msg190"!t""^x03")       // Team Color
    
    
if( id )
    {
        
players] = id;
    }
    else
    {
        
get_players(playerscount"ch")
    }
    {
        for( new 
0counti++ )
        {
            if( 
is_user_connected(players]) )
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players])
                
write_byte(players])
                
write_string(msg)
                
message_end()
            }
        }
    }

xXSnowGamingXx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-23-2017 , 10:38   Re: Ham_Spawn not working?
Reply With Quote #4

try this and tell me if is printing the message:
PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init( )
{
    
RegisterHamHam_Spawn"player""ham_test_post");
}

public 
ham_test_post( const id )
{
    if( 
is_user_alive(id) )
    {
        
client_printidprint_chat"I'm spawned!" );
    }

__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
xXSnowGamingXx
Junior Member
Join Date: Mar 2014
Old 06-23-2017 , 11:16   Re: Ham_Spawn not working?
Reply With Quote #5

Does not work
xXSnowGamingXx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-23-2017 , 11:50   Re: Ham_Spawn not working?
Reply With Quote #6

It means you may have ham module disabled because for me is working, type 'meta list' in the server console and print here the output.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-23-2017 , 12:35   Re: Ham_Spawn not working?
Reply With Quote #7

Or it simply means you didn't add the plugin.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
xXSnowGamingXx
Junior Member
Join Date: Mar 2014
Old 06-23-2017 , 15:07   Re: Ham_Spawn not working?
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Or it simply means you didn't add the plugin.
I did i tried even more rounds but nothing works...
xXSnowGamingXx is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-28-2017 , 19:31   Re: Ham_Spawn not working?
Reply With Quote #9

Quote:
Originally Posted by OciXCrom View Post
Or it simply means you didn't add the plugin.
i think OciX Right
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-23-2017 , 12:38   Re: Ham_Spawn not working?
Reply With Quote #10

I don't think, he says mine and also his plugin doesn't work, he can do a mistake with one plugin but with two ?
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 23:11.


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