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

What is the server_cmd flag?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 09-03-2013 , 05:08   What is the server_cmd flag?
Reply With Quote #1

Any special flag for it?
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-03-2013 , 08:20   Re: What is the server_cmd flag?
Reply With Quote #2

What are you talking about?
__________________
fysiks is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-03-2013 , 09:44   Re: What is the server_cmd flag?
Reply With Quote #3

I think he wants to know if commands executed via server_cmd run on a special flag.
Commands using server_cmd are directly executed by the server, so it doesn't has a flag.
__________________
Kia is offline
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 09-03-2013 , 10:06   Re: What is the server_cmd flag?
Reply With Quote #4

Quote:
Originally Posted by Kia View Post
I think he wants to know if commands executed via server_cmd run on a special flag.
Commands using server_cmd are directly executed by the server, so it doesn't has a flag.
By force?
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-03-2013 , 10:32   Re: What is the server_cmd flag?
Reply With Quote #5

If the command is vaild, it will be executed.
__________________
Kia is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 09-03-2013 , 22:08   Re: What is the server_cmd flag?
Reply With Quote #6

Quote:
Originally Posted by Kia View Post
If the command is vaild, it will be executed.
You talking about check if is a valid comamnd?

well, try to store the cmdlist command in an variable, afther this create a simple stock to check if X variable exists, it will be executed.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-03-2013 , 23:49   Re: What is the server_cmd flag?
Reply With Quote #7

No, I mean when you type in a command that doesn't exist, it won't be executed since it doesn't exist. (The Server will try to execute it if you're not checking if it's vaild.)
__________________
Kia is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 09-04-2013 , 07:29   Re: What is the server_cmd flag?
Reply With Quote #8

Quote:
Originally Posted by Kia View Post
No, I mean when you type in a command that doesn't exist, it won't be executed since it doesn't exist. (The Server will try to execute it if you're not checking if it's vaild.)
But is exactly this i tried to explain. LOL
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-04-2013 , 07:58   AW: Re: What is the server_cmd flag?
Reply With Quote #9

Quote:
Originally Posted by ^SmileY View Post
But is exactly this i tried to explain. LOL
Je ne sais pas. Je suis une Baguette.
__________________
Kia is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 09-04-2013 , 08:42   Re: AW: Re: What is the server_cmd flag?
Reply With Quote #10

Quote:
Originally Posted by Kia View Post
Je ne sais pas. Je suis une Baguette.
kkkkkkkkkk, man, natively the HLDS won't execute the invalid commands, it is only show a returned message when you trie to send invalid commands;..

but, if you want to economize one native in this case server_cmd, it is nothing usable, because you need to programming other natives to check if this command is valid or not to be used.

In fact, using pcvars you also need to check if cvar changed or not to after used or not too.

Sorry, i still do not understand the point of this.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply


Thread Tools
Display Modes

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:16.


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