SendCommand

From NPC for VCMP 0.4 Servers
Revision as of 17:45, 7 December 2022 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
This will send a command to the server as though the NPC typed /command.


Parameters:

(commandtext)

commandtext: The text to be send as command.


Return Values:
This function does not return any specific values.


Example

//This will send the command '/givemeweapon 27' to the server.
SendCommand("givemeweapon 27");

Related Functions

The following functions may be helpful as they relate to this function in one way or another.