Quote from sun : oh yer 1 question...
what is
private void MCI( Packets . IS_MCI MCI)
{
for ( int i = 0; i < Players.Count; i++)
{
decimal Speed = ( decimal )((MCI.Info[i].Speed * (100f / 32768f)) * 3.6f);
decimal ConvSpeed = ( decimal )(Speed * 25 / 1000);
Players[GetPlyIdx(MCI.Info[i].PLID)].Payout += ConvSpeed;
}
used for ? it doesnt work and doesnt show the speed. I guess you have to do some coding for your self write ?
With that you only got more money when you drove more fast, no show money.
For that I use double button, got money = green
but my problem is when stopped the car the button no pass to default color.
private void PayUser_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { foreach (clsPlayer Ply in Players) { if (Ply.Payout > 4) { Connections[GetConnIdx(Ply.UniqueID)].Cash += 2; Ply.Payout = 0; InSim.Send_BTN_CreateButton("^2" + Connections[GetConnIdx(Ply.UniqueID)].Cash + "^2€", Flags.ButtonStyles.ISB_DARK, 5, 15, 0, 135, 5, Ply.UniqueID, 2, false); } } }
Last edited by ReVoX, Thu 6 Mar 2008, 19:29 .