[Help] Newbie absolutely stumped, sending a message when train arrives.
#7

Thankyou to both of you, I have it working.

Quote:

public TrainCheck()
{
new Float:fDistance = GetVehicleDistanceFromPoint(MyFirstNPCVehicle, 1778.8184, -1953.8077, 14.8756);
if(fDistance <= 10)
{
SendClientMessageToAll(COLOR_RED, "The train has arrived at Unity Station");
}
return 1;
}

Now I just need to make the timer longer than 1 second because it spams the chat the whole time the train is there. xD

+Repped
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)