Author Topic: Can someone give me a code to execute a command?  (Read 903 times)

Can someone post a basic code to execute a server command, such as /warp?

What do you mean? serverCmdWarp(%client); ?

Can someone post a basic code to execute a server command, such as /warp?
commandToServer('warp'); ?

Well, which is right? For example, for a vehicle under the OnMount coding I want it to execute the command /stereo, as if you were in the car and typed /stereo. To give an example, I am editing the thunderstorm script so when it starts, it will execute /servermusic or something for use with another mod.

Well, which is right? For example, for a vehicle under the OnMount coding I want it to execute the command /stereo, as if you were in the car and typed /stereo. To give an example, I am editing the thunderstorm script so when it starts, it will execute /servermusic or something for use with another mod.
We were not sure what you wanted because you did a bad job at explaining it. For what you want. Mine is right. Zeblote's is if you want to do it client sided.

Inside the OnMount function, you'll want to insert serverCmdStereo(%obj.client);
« Last Edit: January 03, 2014, 12:08:04 AM by $trinick »

Inside the OnMount function, you'll want to insert serverCmdStereo(%obj.client);
;-;