Raised This Month: $32 Target: $400
 8% 

Command and connection to server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 04-16-2015 , 14:43   Command and connection to server
Reply With Quote #1

Hi. How to make players execute command when they connecting on my server? (You may give me PHP code and i will compile it)

Last edited by Maximilian_; 04-16-2015 at 14:48.
Maximilian_ is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-16-2015 , 15:05   Re: Command and connection to server
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=683858
KissLick is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 04-16-2015 , 15:37   Re: Command and connection to server
Reply With Quote #3

Quote:
Originally Posted by KissLick View Post
console command (mat_supportflashlight 1)
Maximilian_ is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 04-16-2015 , 15:53   Re: Command and connection to server
Reply With Quote #4

PHP Code:
#include <sourcemod>

public OnClientPutInServer(client){
    
ClientCommand(client,  "any_command_here");

thecount is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 04-16-2015 , 16:31   Re: Command and connection to server
Reply With Quote #5

Quote:
Originally Posted by thecount View Post
PHP Code:
#include <sourcemod>

public OnClientPutInServer(client){
    
ClientCommand(client,  "any_command_here");

With my command not works :\
Maximilian_ is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 04-16-2015 , 16:50   Re: Command and connection to server
Reply With Quote #6

What's your command? not all are allowed.
Dr. Api is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 04-16-2015 , 23:57   Re: Command and connection to server
Reply With Quote #7

Quote:
Originally Posted by Dr. Api View Post
What's your command? not all are allowed.
mat_supportflashlight 1
Maximilian_ is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-17-2015 , 05:07   Re: Command and connection to server
Reply With Quote #8

Quote:
Originally Posted by Maximilian_ View Post
mat_supportflashlight 1
Yeah, I guess that is now allowed...
KissLick is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 04-17-2015 , 07:53   Re: Command and connection to server
Reply With Quote #9

Well...I will tell you what i want. I want flashlight on my server, but make players execute this command i can't
Maximilian_ is offline
Maximilian_
Veteran Member
Join Date: Oct 2014
Old 04-17-2015 , 07:54   Re: Command and connection to server
Reply With Quote #10

I saw in slender fortress, maybe someone give me part of code of flashlight from sf2?
Maximilian_ 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 06:23.


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