Raised This Month: $ Target: $400
 0% 

NEED HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FloorenTIbraimi
Member
Join Date: Jul 2014
Location: Macedonia
Old 09-29-2014 , 15:22   NEED HELP
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "RULES"
#define VERSION "1.0"
#define AUTHOR "FloorenTIbraimi"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
         
register_event("ResetHUD""spawn""b")
}

public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Rules")
}

public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Dont Spam Becaus You Will Get GAG")
}
public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Don't ads your server here")
}
public 
spawn(id)
{
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"Dont Push With Admin")
}
public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"If You Had Problem With Admin Contact On Facebook")

I Want To Add rules When i Write /rules to show On Left Rules HELP PLS !!! I Think i forgot this
PHP Code:
    register_clcmd"say /rules""ClientCommand_Test" ); 

sory for my bad english!!!
FloorenTIbraimi is offline
Old 09-29-2014, 16:24
aron9forever
This message has been deleted by hornet. Reason: Useless post
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-29-2014 , 23:11   Re: NEED HELP
Reply With Quote #3

Please use RegisterHam(Ham_Spawn, "player", "fw_PlayerRespawn", 1).
zmd94 is offline
Old 09-30-2014, 05:13
Fr33m@n
This message has been deleted by Fr33m@n. Reason: nvm
FloorenTIbraimi
Member
Join Date: Jul 2014
Location: Macedonia
Old 09-30-2014 , 08:02   Re: NEED HELP
Reply With Quote #5

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "RULES"
#define VERSION "1.0"
#define AUTHOR "FloorenTIbraimi"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
         
register_event("ResetHUD""spawn""b")
         
RegisterHam(Ham_Spawn"player""fw_PlayerRespawn"1).
}

public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Rules")
}

public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Dont Spam Becaus You Will Get GAG")
}
public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"Don't ads your server here")
}
public 
spawn(id)
{
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"Dont Push With Admin")
}
public 
spawn(id)
{
    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"If You Had Problem With Admin Contact On Facebook")

LIKE THIS ?
FloorenTIbraimi is offline
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 09-30-2014 , 10:31   Re: NEED HELP
Reply With Quote #6

Quote:
Originally Posted by FloorenTIbraimi View Post
LIKE THIS ?
delete register_event and replace "spawn" with Ham_Spawn function you registered(fw_PlayerRespawn)
RateX is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-30-2014 , 11:30   Re: NEED HELP
Reply With Quote #7

Just use below. ;)

New update!
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "RULES"
#define VERSION "1.0"
#define AUTHOR "FloorenTIbraimi"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd"say /rules""show_rules" )
}

public 
show_rules(id)
{
    if (
is_user_alive(id))
    {
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"Rules")
        
set_task(3.0"message2"id)
    }
}

public 
message2(id)
{
    if (
is_user_alive(id))
    {
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"Don't spam because you will get GAG")
        
set_task(3.0"message3"id)
    }
}

public 
message3(id)
{
    if (
is_user_alive(id))
    {
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"Don't ads your server here")
        
set_task(3.0"message4"id)
    }
}

public 
message4(id)
{
    if (
is_user_alive(id))
    {
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"Don't push with admin")
        
set_task(3.0"message5"id)
    }
}

public 
message5(id)
{
    if (
is_user_alive(id))
    {
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(id"If you had problem with admin, just contact via FB!")
    }


Last edited by zmd94; 10-01-2014 at 05:56.
zmd94 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-30-2014 , 12:41   Re: NEED HELP
Reply With Quote #8

@zmd94
That's not what he asked for.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-01-2014 , 06:02   Re: NEED HELP
Reply With Quote #9

I have updated the code. When a player type /rules in chat, he will get the hud message. ;)


Last edited by zmd94; 10-01-2014 at 06:02.
zmd94 is offline
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 10-02-2014 , 09:25   Re: NEED HELP
Reply With Quote #10

you can also make rules motd !
__________________
SPACE TIME
Kuma77 is offline
Reply


Thread Tools
Display Modes

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 17:34.


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