Author Topic: Changing a player's paint can color (server sided) [Solved]  (Read 518 times)

How would I change the player's painting color server sided? I tried useSprayCan(%client, %colorID); but that just opened the paint menu and changed it to the next row.
« Last Edit: July 15, 2012, 06:08:43 AM by jes00 »

commandToServer('UseSprayCan', %colorID);

or

serverCmdUseSprayCan(%client, %colorID)

serverCmdUseSprayCan(%client, %colorID)
I tried that already.

I tried that already.
You're doing it wrong, then. I literally just tested it and it does exactly as desired.

You're doing it wrong, then. I literally just tested it and it does exactly as desired.
When I do commandToServer('UseSprayCan', 27); it works fine, but when I do UseSprayCan(findClientByName("jes00"), 27); it just switches my paint row.

EDIT: Oh lol it's serverCmdUseSprayCan(%client, %colorID); and not useSprayCan(%client, %colorID);

DOUBLE EDIT: Is there any commandToClient thing I can use to tell the client to open their paint menu?
« Last Edit: July 14, 2012, 10:49:30 AM by jes00 »

When I do commandToServer('UseSprayCan', 27); it works fine, but when I do UseSprayCan(findClientByName("jes00"), 27); it just switches my paint row.

EDIT: Oh lol it's serverCmdUseSprayCan(%client, %colorID); and not useSprayCan(%client, %colorID);

DOUBLE EDIT: Is there any commandToClient thing I can use to tell the client to open their paint menu?

You cannot force the client to switch to a specific scroll mode, which is exactly what that would do.