ResetMapInfo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
__NOTOC__
__NOTOC__
{{Needs_Checking|This also needs to reset the following:
{{Needs_Checking|This also needs to reset the following:
*gravity
*gravity - needs checking
*game speed
*game speed - needs checking
*cursor state
*cursor state - needs checking
*player stats
*player stats - needs checking
*wanted level
*wanted level - needs checking
*fighting style
*fighting style - needs checking
*nametag color
*nametag color - needs checking
*nametag text
*nametag text - needs checking
*nametag showing state
*nametag showing state - needs checking
*money
*money - needs checking
*weather
*weather - needs checking
*waveheight
*waveheight - needs checking
*sky gradient}}
*sky gradient - needs checking}}
This function is used to reset the state of a player.  It is intended to restore a player to his default state as if he had just joined the server, without any scripts affecting him.
This function is used to reset the state of a player.  It is intended to restore a player to his default state as if he had just joined the server, without any scripts affecting him.



Revision as of 14:35, 1 December 2007


Dialog-information.png This article needs checking.

Reason(s): This also needs to reset the following:
  • gravity - needs checking
  • game speed - needs checking
  • cursor state - needs checking
  • player stats - needs checking
  • wanted level - needs checking
  • fighting style - needs checking
  • nametag color - needs checking
  • nametag text - needs checking
  • nametag showing state - needs checking
  • money - needs checking
  • weather - needs checking
  • waveheight - needs checking
  • sky gradient - needs checking

This function is used to reset the state of a player. It is intended to restore a player to his default state as if he had just joined the server, without any scripts affecting him.

Syntax

bool resetMapInfo ( [player thePlayer = getRootElement()] )

Optional Arguments

thePlayer: The specific player you wish to restore the state of. Not specifying this will result in all players map info being reset.

Returns

Returns true if the map info was reset successfully, otherwise false.

Example

This page does not have an example.

--add an example here

See Also