Raised This Month: $ Target: $400
 0% 

Exec a command on player when he joins the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ehsank1768
Member
Join Date: Aug 2022
Old 05-07-2023 , 14:54   Exec a command on player when he joins the server
Reply With Quote #1

hi can someone make a plugin that when a player joins the server, the server will run a command on him for example when the player joins the game the command sm_showrules will be used for him(this was only a example i know there are *Rules plugins* on this website)
ehsank1768 is offline
Naathy
Member
Join Date: Mar 2022
Location: Brazil
Old 05-07-2023 , 22:01   Re: Exec a command on player when he joins the server
Reply With Quote #2

Quote:
Originally Posted by ehsank1768 View Post
hi can someone make a plugin that when a player joins the server, the server will run a command on him for example when the player joins the game the command sm_showrules will be used for him(this was only a example i know there are *Rules plugins* on this website)
PHP Code:
public void OnClientPutInServer(int client)
{
    
FakeClientCommand(client"sm_command");

Replace the sm_command for the command you want.
__________________
Owner of NGServers

Contact
Discord | Steam | Github
Naathy 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 10:52.


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