Squirrel/Server/Functions/Players/Armour
From Liberty Unleashed Wiki
(Difference between revisions)
m |
(Undo revision 2544 by Reginald960439 (Talk)) |
||
Line 27: | Line 27: | ||
=== Notes === | === Notes === | ||
− | The functions [ | + | The functions [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]], [[Squirrel/Server/Functions/Players/FindPlayer|FindPlayer]], [[Squirrel/Server/Functions/Players/Name|player.Name]] and event call [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used in in this example. More info about them can be found in the corresponding pages. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Players}} | {{Squirrel/Server/Functions/Players}} |
Latest revision as of 23:18, 12 March 2011
This function returns the current amount of armour on a player
[edit] Syntax
int player.Armour player.Armour = newArmour
[edit] Example
This command gives player's armour when someone types '/armour playername'.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "armour" ) { local plr = FindPlayer( text ); if ( !plr ) MessagePlayer( "Error: Player '" + text + "' is not in the server.", player ); else MessagePlayer( plr.Name + "'s armour: " + plr.Armour, player ); } }
[edit] Notes
The functions MessagePlayer, FindPlayer, player.Name and event call onPlayerCommand were used in in this example. More info about them can be found in the corresponding pages.
[edit] Related Functions
- FindPlayer
- GetClosestPlayer
- Player.Alpha
- Player.Angle
- Player.Armour
- Player.Cash
- Player.Class
- Player.ClearWeapons
- Player.Colour
- Player.ColouredName
- Player.EnterVehicle
- Player.ExitVehicle
- Player.ForceToSpawnScreen
- Player.Frozen
- Player.GetBoundariesLower
- Player.GetBoundariesUpper
- Player.GetIgnored
- Player.Health
- Player.ID
- Player.IP
- Player.Immune
- Player.Island
- Player.LUID
- Player.Marker
- Player.MarkerScale
- Player.MarkerSprite
- Player.Muted
- Player.Name
- Player.Nametag
- Player.NametagColour
- Player.Ping
- Player.Pos
- Player.RemoveFromVehicle
- Player.RemoveLimb
- Player.Score
- Player.SetAnim
- Player.SetBoundaries
- Player.SetIgnored
- Player.SetIgnoredBy
- Player.SetVehicleEnterDoor
- Player.SetWeapon
- Player.Skin
- Player.Spawn
- Player.Spawned
- Player.Team
- Player.Train
- Player.Vehicle
- Player.VehicleSeat
- Player.Velocity
- Player.VirtualWorld
- Player.WantedLevel
- Player.Weapon
- Player.SetWeapon
- Player.WeaponAmmo
- Player.WeaponState