25.11.2011, 13:24
Quote:
1) Look up "random()".
2) "IsTrailerAttachedToVehicle" will tell you if a vehicle has a trailer. To detect when it comes off you just need to call that function repeatedly, either in a timer or "OnPlayerUpdate". 3) Not sure. 4) Move the activiation code out of "OnPlayerCommandText" in to a new function then call that function from both "OnPlayerCommandText" with a random number to begin one, and from "OnPlayerEnterCheckpoint" with the next number to continue when they complete the current one. I know it's not in-depth help, but hopefully useful pointers. |