8206
Modification Help / Re: Item Dropping.
« on: April 16, 2010, 05:11:17 PM »Code: [Select]servercmdmyfunction()
{
%client = findclientbyname("yourname");
serverCmdDropTool(%client,1);
}
I think that'd make a function called myfunction that when you called it it'd make a person named yourname drop the item in his slot one.
This would syntax error at line 1 and do nothing. I don't mean to offend you but please don't post in coding help if you can't code.
Edit for clarification: Functions start off as
Code: [Select]
function [whatever it is here] example: Code: [Select]
function doStuff(arguments here) or Code: [Select]
function servercmddoStuff(arguments here)You also don't need to define %client as it is already defined.
-clientsidedstuffsnip-
Been doing too much clientsided scripting, see Amade's post for correct syntax of forcing a server command.
