Raised This Month: $ Target: $400
 0% 

no


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 10-07-2014 , 01:37   no
Reply With Quote #1

no

Last edited by Awesome_man; 06-12-2015 at 23:00.
Awesome_man is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-07-2014 , 03:18   Re: Code not working
Reply With Quote #2

Just try below:
PHP Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init ()
{
    
register_plugin("Welcome Message""""")    
}

public 
client_putinserver(id)
{
    if(
is_user_connected(id))
    {
        
set_task(5.0"welcome"id)
    }
}

public 
welcome(id)
{    
    
set_dhudmessage(02552120.270.3326.012.0)
    
show_dhudmessage(id"Welcome to ^nOnline gamers!")


Last edited by zmd94; 10-07-2014 at 09:50.
zmd94 is offline
Old 10-07-2014, 04:05
fysiks
This message has been deleted by fysiks. Reason: nvm
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-07-2014 , 07:30   Re: Code not working
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init ()
{
    
register_plugin("Welcome Message""""")     
}

public 
client_putinserver(id)
{
    
set_task(5.0"welcome"id+1337)
}
public 
client_disconnect(id)
{
remove_task(id+1337)
}
public 
welcome(id)
{    
    
set_dhudmessage(02552120.270.3326.012.0)
    
show_dhudmessage(id-1377"Welcome to ^nOnline gamers!"

so you don't get run time errors
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 10-07-2014 , 09:00   Re: Code not working
Reply With Quote #5

Quote:
Originally Posted by aron9forever View Post
PHP Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init ()
{
    
register_plugin("Welcome Message""""")     
}

public 
client_putinserver(id)
{
    
set_task(5.0"welcome"id+1337)
}
public 
client_disconnect(id)
{
remove_task(id+1337)
}
public 
welcome(id)
{    
    
set_dhudmessage(02552120.270.3326.012.0)
    
show_dhudmessage(id-1377"Welcome to ^nOnline gamers!"

so you don't get run time errors
It's crashing server again n again
Awesome_man is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-07-2014 , 09:08   Re: Code not working
Reply With Quote #6

show_dhudmessage(id-1377, "Welcome to ^nOnline gamers!")

->>
show_dhudmessage(id-1337, "Welcome to ^nOnline gamers!")

I can't help it I'm only human
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-07-2014 , 09:51   Re: Code not working
Reply With Quote #7

Quote:
Originally Posted by zmd94 View Post
Just try below:
PHP Code:
#include <amxmodx>
#include <dhudmessage>

public plugin_init ()
{
    
register_plugin("Welcome Message""""")    
}

public 
client_putinserver(id)
{
    if(
is_user_connected(id))
    {
        
set_task(5.0"welcome"id)
    }
}

public 
welcome(id)
{    
    
set_dhudmessage(02552120.270.3326.012.0)
    
show_dhudmessage(id"Welcome to ^nOnline gamers!")

zmd94 is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-07-2014 , 12:59   Re: Code not working
Reply With Quote #8

Quote:
Originally Posted by zmd94 View Post
.
u don't get it
player can disconnect while task is undergoing
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 10-09-2014 at 07:22.
aron9forever is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-07-2014 , 11:57   Re: Code not working
Reply With Quote #9

Remove this damm task, right after showing the hud message.
__________________
HamletEagle is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-07-2014 , 12:02   Re: Code not working
Reply With Quote #10

Quote:
Originally Posted by HamletEagle View Post
Remove this damm task, right after showing the hud message.
Why? It gets removed automatically already
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
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 17:45.


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