The online racing simulator
PENALTY REMOVAL
Hi. Me again. Something came to my mind and I want to code it, but I need your help. There is a command in PIT to remove a stop and go penalty. (p_clear username) I want to run this command automatically. I want it to take the coordinates of the pit exits and send an automatic message to the system, but I have no idea how to do it. Have you seen an example study on this subject? He stated that a person named Sinanju hardcore did this a long time ago. But I couldn't find the work. I would love if you help. If there is no code, my idea would be like this. The system would record the pit exit coordinates and automatically remove the penalty when a vehicle passes there. But I don't know which of the nodes to use.
** Best answer **
In lfslapper.lpr an event named: OnExitPitLane.This event will be executed when someone drives to the end of the pitlane.

within this event add:

cmdLFS( "/p_clear " . GetCurrentPlayerVar( "UserName" ));

Thank you. It works. ^^

FGED GREDG RDFGDR GSFDG