PDA

View Full Version : Anybody Have?


elmasfumao
30th September 2010, 22:57
Hey Does anybody got a Tow System that would look like this when You havent recieve any tow Calls & that it would look like the picture i uploaded when you request a tow?

Degats
30th September 2010, 23:08
Yes. TC.

elmasfumao
30th September 2010, 23:09
Yes i know but i dont want it exacly like that cuz a server already have that but something similar or that do the samething

skywatcher122
1st October 2010, 02:26
is it about when the call from towtruck doesnt come the caller automatically pitlaned for free or being charged?

elmasfumao
1st October 2010, 13:48
No, That just notify all the towtruck that you need help.

skywatcher122
1st October 2010, 19:49
is it like this?

foreach (cls... C in Conn)
{
if (C.IsTowTruck == 1)
{
InSim.MTC.."PlayerName needs help at Location String"
}
}

Well?

elmasfumao
1st October 2010, 20:24
Im not Sure

skywatcher122
1st October 2010, 20:28
thats the thing i used
for example when its only called in C.IsTowTruck == 1 only TowTrucks online can receive the message like sample i posted ;) make sure use at the MTC C.UniqueID, 0

PoVo
1st October 2010, 20:53
Super duper explanation! (No offence)

skywatcher122
1st October 2010, 21:24
Super duper explanation! (No offence)


Nope its Super Doper Explanation :razz:

elmasfumao
1st October 2010, 21:25
How you get the Box that i showed you in the SS?

skywatcher122
1st October 2010, 21:54
then make a Button ID

elmasfumao
1st October 2010, 22:24
Huh?

broken
2nd October 2010, 09:39
The logic is pretty simple..

Scenario if you are the flipped car ::>
1st. You type !towrequest or whatever you want the command to be
2nd. You wait for (all or the nearby) tow cars to be informed
3rd. You receive a message of the status of the informing process

Scenario if you are the tow car that's going to be informed about it ::>
1st. Nothing happens before the !towrequest command is executed
2nd. You receive a button with information about the flipped car
3rd. You are allowed to either accept or reject the tow request?
4th. When you go near the car you do whatever the rules require you to do

Scenario on the programming side ::>
1st. You listen for MSO packets
2nd. You recognize the !towrequest command when received
3rd. You iterate thorough all of the users
4th. If the current user is tow - check their distance from the flipped car in nodes
5th. If they are close enough - display a button, and allow them to accept or reject the req
5.1. Inform the flipped car that tow cars have been found
6.1. If the tow car accepts - inform the user again
6.2. If all the tow cars found reject the req - again, inform the user

There it is. Step by step. And I guess that you will be using an open source project as a base for your insim app, so you can ignore step 1 on the programming "scenario".