PDA

View Full Version : Cruise Insim: User File and Givemoney Command or Button


XmaX
2nd April 2008, 17:33
Hi guys. Im an newbie at Programming. I tryed do to an userfile for my Cruise insim. But it dont work. I also need a Givemoney button oder command only for admin. Please help, Greetz

mcgas001
2nd April 2008, 17:56
For an "!send" command, DarkTimes made one Here (http://www.lfsforum.net/showthread.php?p=750214#post750214)

XmaX
2nd April 2008, 18:04
see already, have it in my script already. But i want send not from me. Example. An Admin is the Bank, with a command he can give money without losing his own.

Thank you :D

Nock44
2nd April 2008, 18:43
Yes that what the !send command is that Dark Made.
It gives a user money without taking it away from the admin.

XmaX
2nd April 2008, 19:35
ahh yes thx, dont know that, and it work. Than you all. Can you tell me were there userfile is saved or how i can create userfiles ?

Greetz :D

Nock44
2nd April 2008, 19:40
C:\Users :thumb:

XmaX
2nd April 2008, 19:44
:D Thats the correct answer :P Thank you very much. Nice Community :D

-XmaX

XmaX
3rd April 2008, 11:15
hi i need a pitlane command... i tried already but it was wrong
case "!pitlane":
InSim.Send_MST_Message("/pitlane" + Connections[GetConnIdx(MSO.UCID)].PlayerName + "was serviced", MSO.UCID, 0);
break;

vane
3rd April 2008, 13:31
remove the "was serviced" bit

XmaX
3rd April 2008, 13:53
sorry but dont work. I got a message too:
No overcharging for the Send_MST_Message - method takes 3 arguments. (Translatet with Google tranlator :P)

mcgas001
3rd April 2008, 13:57
case "!pitlane":
InSim.Send_MST_Message("/pitlane " + Connections[GetConnIdx(MSO.UCID)].Username);
break;

XmaX
3rd April 2008, 14:08
Wow, little bug an all its wrong. Than you :D

XmaX
4th April 2008, 15:33
Can i paste a clocke for each user who is on the server ?

Greetz

vane
7th April 2008, 11:39
i guess you mean clock :) probably not an analogue clock but a digital clock would be ok, im sure there is a tag in C# to get the time from the computer the insimo is on, dont know if it is posible to get the time of the people who are connected though :s unless you gave them a setup menu which allowed them to choose GMT +1 or something

XmaX
8th April 2008, 11:47
Yes clock. I thinked when a new come on the server he can chose him/his timezone by a button and the clock is displayed when you type !clock and you can close it with a close button.

=C.R= Boomshanka
11th October 2008, 23:34
hia im new to all of this, ive copyed the clock from doug's open souce cruise server to mine and its not showing up, no bug reports so i dono what im doing wrong please help


privatevoid CheckUser_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
{
string Time = Convert.ToString(System.DateTime.Now.TimeOfDay.Hou rs).PadLeft(2, '0') + ":" + Convert.ToString(System.DateTime.Now.TimeOfDay.Min utes).PadLeft(2, '0');
InSim.Send_BTN_CreateButton("^7" + Time, Flags.ButtonStyles.ISB_DARK, 5, 15, 6, 90, 6, C.UniqueID, 2, false);
}
}

=C.R= Boomshanka
11th October 2008, 23:55
simply had it in the wrong place lol

(The Stig)
4th December 2008, 16:46
How can I set it up though.?

the_angry_angel
5th December 2008, 00:43
How can I set it up though.?Sorry? You appear to have posted a question which has left the obvious realm of the thread.

Set what up? Could you give us some context?