[HOWTO]Player Connects
* This will explain and tell you how to get when a player is connected*
============================================= === First let's write the first part: PHP Code:
PHP Code:
Allright, since we know the user has conected let's move on. PHP Code:
Now let's get his name! PHP Code:
We can set our hud message now! PHP Code:
show_hudmessage - The id makes sure that only the player connecting is shown this message. "Hello and Welcome %s" is the message that the player will see. name at the end was user in PHP Code:
We have gotten our full code now: PHP Code:
|
Re: [FAQ]Player Connect
Quote:
The 0 will show the hud message to everyone |
Re: [HOWTO]Player Connects
Oh, type error put 0 instead of 1 sorry.
FIXED |
Re: [HOWTO]Player Connects
Well its still wrong.
The first parameter of show_hudmessage needs to be the ID of the player and that is not always 1 In this case use id |
Re: [HOWTO]Player Connects
FIXED
|
Re: [HOWTO]Player Connects
This 'tutorial' is useless. Trashing since it doesn't even belong anywhere else.
|
| All times are GMT -4. The time now is 07:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.