Error in onPlayerCommand, is pPlayer. View the line 7, 8 and 9. You put pPlayer, is player, ( view the onPlayerCommand )
function onPlayerCommand( pPlayer, cmd, text )
{
if ( cmd == "Armor" )
{
else if ( pPlayer.Armour < 100 )
{
Message( pPlayer + " Armour restored.", Colour( 0, 255, 0 ) );
pPlayer.Armour = 100;
}
else
{
MessagePlayer( "Your armour is full!", pPlayer );
}
}
}