Raised This Month: $12 Target: $400
 3% 

[ReQ] Player connect server - auto say /respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 09-11-2011 , 05:05   [ReQ] Player connect server - auto say /respawn
Reply With Quote #1

Hi all,

I need a plugin

Player, Connect server. Automatic say /respawn.
wTf. is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-11-2011 , 10:41   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #2

Do you already have a respawn plugin? If so, give me the source file so i can make it for you.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
2reason2kill
Senior Member
Join Date: Feb 2011
Old 09-11-2011 , 11:52   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #3

Quote:
Originally Posted by wTf. View Post
Hi all,

I need a plugin

Player, Connect server. Automatic say /respawn.
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "sup"
#define VERSION "1.0"
#define AUTHOR "2reason2kill"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}
public 
client_connect(id)
{
    
set_task(60.0"sayrespawn"id)
}
public 
sayrespawn(id)
{
    
client_cmd(id"say /respawn")


Last edited by 2reason2kill; 09-11-2011 at 16:34.
2reason2kill is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-11-2011 , 11:54   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #4

Quote:
Originally Posted by 2reason2kill View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "sup"
#define VERSION "1.0"
#define AUTHOR "2reason2kill"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}
public 
client_connect(id)
{
    
set_task(5.0"sayrespawn"id)
}
public 
sayrespawn(id)
{
    
client_cmd(id"say /respawn")

I think he wants a respawn plugin with the set_task in it aswell.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
2reason2kill
Senior Member
Join Date: Feb 2011
Old 09-11-2011 , 13:45   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #5

Quote:
Originally Posted by Napoleon_be View Post
I think he wants a respawn plugin with the set_task in it aswell.
read His Post agian.

Quote:
Player, Connect server. Automatic say /respawn.
2reason2kill is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 09-11-2011 , 15:36   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #6

In the function, you should check if the player is connected. He could leave in 5 seconds.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-11-2011 , 16:15   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #7

He could even not have the time to connect in 5 seconds.
After putinserver, he could have not chosen any team before 5 secs...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 09-11-2011 , 16:23   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
He could even not have the time to connect in 5 seconds.
After putinserver, he could have not chosen any team before 5 secs...
He should know that, so no need to point it out.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
2reason2kill
Senior Member
Join Date: Feb 2011
Old 09-11-2011 , 16:33   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #9

Quote:
Originally Posted by bibu View Post
He should know that, so no need to point it out.
Is 1 min to short?
2reason2kill is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-11-2011 , 17:35   Re: [ReQ] Player connect server - auto say /respawn
Reply With Quote #10

Quote:
Originally Posted by bibu View Post
He should know that, so no need to point it out.
He launch the task in client_connect, you answered a stupid thing, 5 sec after client_connect is no sense.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 03:19.


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