
Remove space characters from the end of the string.Ĭrashes on a blank string and size greater than 1024. If the last character in the text is a space (" "), the text will all be blank.

If a checkpoint is already set it will use the size of that checkpoint instead of the new one.Ĭall "DisablePlayerCheckpoint" before setting the checkpoint.Ĭall "DisablePlayerRaceCheckpoint" before setting the checkpoint. If this is used on a passenger the driver of their old vehicle doesn't see them in their new vehicle.

If "SetPlayerArmedWeapon" and other similar functions is called in a vehicle, store the new value and return that instead. Returns the old value after entering in a vehicle.

Other players see you moving on the spot.Įntering military aircraft with a sniper rifle messes up views.įunction returns an undefined value if it is called before any other checkpoint functions are called to initialise the value.Ĭall "DisablePlayerCheckpoint" when they connect.įunction returns an undefined value if it is called before any other race checkpoint functions are called to initialise the value.Ĭall "DisablePlayerRaceCheckpoint" when they connect. Return the correct names ( Molotov Cocktail, Thermal Goggles, and Night vision Goggles).Ĭheck for the player leaving the area and reset them to their last good position if they leave the area (aiming or not). Record the skin in "OnPlayerSpawn" and always return that one. Returns the new skin after "SetSpawnInfo" is called but before the player actually respawns to get the new skin. Using "SetPlayerName" when the new name only differs from the old name in case does not alter the name at all.Ĭhange their name twice - once to "_FIXES TEMP NAME" and then to the actual required name. Kills the player if they are in a vehicle. Provide an "IS_FILTERSCRIPT" variable (note the naming to match the original macro). Returns "0" if "SetPlayerColor" has never been called.Ĭall "SetPlayerColor" in "OnPlayerConnect".ĭespite the fact that is in every new script, many people dont' define "FILTERSCRIPT" where appropriate.

You can also download the entire repo using git, and will get a more complete experience, including better warnings and this documentation.
