Raised This Month: $ Target: $400
 0% 

[Help] Force Clients


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xtreme-Coder
Member
Join Date: Oct 2006
Location: Scripting Amxx
Old 10-18-2006 , 21:13   [Help] Force Clients
Reply With Quote #1

Ok i need help with something i am in the proccess of writing a plugin and i need to know how to force clients to use a certain command when they join my server such as con_color 255 thx +karma if it works
__________________
[IMG]http://img511.**************/img511/4757/xtremecoderfc8.png[/IMG]

|[ Current Projects ]|

Musical Jukebox [||||||||||||] (50 %)

Party Mod [||||||||||||] (20 %)
Xtreme-Coder is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-18-2006 , 23:13   Re: [Help] Force Clients
Reply With Quote #2

This is the support/help section, not the suggestions/requests or scripting help section..

PHP Code:
client_cmd(id,"command"); 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 10-18-2006 , 23:36   Re: [Help] Force Clients
Reply With Quote #3

Here's the forward you'd want...

Code:
public client_putinserver(id) { //called when a client is put in server     client_cmd(id,"command") }

Last edited by jRaven; 10-19-2006 at 12:01. Reason: correction from Xanimos
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-19-2006 , 00:33   Re: [Help] Force Clients
Reply With Quote #4

No, use client_putinserver not client_connect.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Xtreme-Coder
Member
Join Date: Oct 2006
Location: Scripting Amxx
Old 10-19-2006 , 12:58   Re: [Help] Force Clients
Reply With Quote #5

Ok thanks, Worked perfectly
__________________
[IMG]http://img511.**************/img511/4757/xtremecoderfc8.png[/IMG]

|[ Current Projects ]|

Musical Jukebox [||||||||||||] (50 %)

Party Mod [||||||||||||] (20 %)
Xtreme-Coder 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 04:47.


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