Author Topic: Client sided coding  (Read 809 times)

Hey, i will try to make a client sided code, but i'm most known in normal server side coding. i need help to know how i can start making a client sided code just for practise, tell me if someone has a good idea.

Client sided code and server sided code are identical. Just server sided code is only executed while hosting a server, yet client sided code is executed for the duration of the game.

Just server sided code is only executed while hosting a server, yet client sided code is executed for the duration of the game, and not executed at all if you host a dedicated server.
This one difference results in client side and server side code being far from identical.

I do a lot of client side coding.

Here are my released mods you might like to look through:
Server Command GUI
BuildBot

It is extremely helpful to know how to make GUIs for client side coding.

For a client function do this:

function clientCmdWHATEVERstuffHERE(%client)
{

For a client function do this:

function clientCmdWHATEVERstuffHERE(%client)
{


No, that is only if you want the server to be able to tell you to do something.

As a general rule of thumb, I never do it unless there is no way the server can abuse the command and I need the server to send me the information.


Edit: also wtf there is no %client defined on the client side.
« Last Edit: July 20, 2011, 10:51:42 PM by Nexus »